Join GitHub today
[FrameworkBundle][TranslationDebug] Return non-zero exit code on failure #29139
This PR introduces non-zero exit codes upon failure for the
The exit code returned can be interpreted as a bit array and to determine what failed, one could Bitwise AND the returned exit code to determine what failed.
Example: Given there are missing and unused translations, the expected status code would be
Nov 8, 2018
Hello @fabpot and @nicolas-grekas! Apologies for the delay. Originally I thought it was silly to not return a non-zero exit code by default as well, but then I realized that this command could be used for fallback messages. Because of this, knowing when to return a non-zero status code could be difficult (e.g. should the command return a non-zero exit code due to missing a localized translation or should it return a successful zero exit code because a fallback could be used instead).
When initially writing the this PR, I pulled inspiration from composer's outdated command and the ability to increase verbosity levels in numerous commands (