Skip to content

Commit

Permalink
return error when msgfmt failed
Browse files Browse the repository at this point in the history
  • Loading branch information
SoftFever committed Oct 26, 2023
1 parent a106625 commit fc7a47e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions run_gettext.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,10 @@ do
fi
mkdir -p ./resources/i18n/${lang}/
msgfmt --check-format -o ./resources/i18n/${lang}/OrcaSlicer.mo $dir/OrcaSlicer_${lang}.po
# Check the exit status of the msgfmt command
if [ $? -ne 0 ]; then
echo "Error encountered with msgfmt command for language ${lang}."
exit 1 # Exit the script with an error status
fi
fi
done

0 comments on commit fc7a47e

Please sign in to comment.