You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an error is thrown for missing credentials, the error message is rendered but the process exits with code 0 indicating success.
My use case is to push translations via CI as part of our deployment process. The credentials in our CI environment variables got wiped at some point, and we never realized the translation pushes stopped happening because the job still "succeeds" even though it actually failed.
Expected Behavior
When a fatal error occurs, the process should exit with a non-zero exit code so that automated tooling (such as CI) can respond to the failure. My use case is specific to missing credentials in the push action, but there may be other scenarios that warrant this same outcome.
Steps to Reproduce
Call a CLI command such as push, without providing any credentials:
txjs-cli push src/
Observe the error message logged, but the command succeeding:
Current Behavior
When an error is thrown for missing credentials, the error message is rendered but the process exits with code 0 indicating success.
My use case is to push translations via CI as part of our deployment process. The credentials in our CI environment variables got wiped at some point, and we never realized the translation pushes stopped happening because the job still "succeeds" even though it actually failed.
Expected Behavior
When a fatal error occurs, the process should exit with a non-zero exit code so that automated tooling (such as CI) can respond to the failure. My use case is specific to missing credentials in the
push
action, but there may be other scenarios that warrant this same outcome.Steps to Reproduce
Call a CLI command such as
push
, without providing any credentials:Observe the error message logged, but the command succeeding:
Possible Solution
Return a non-zero exit code for fatal errors.
Possible Implementation
https://github.com/transifex/transifex-javascript/blob/master/packages/cli/src/commands/push.js#L156
The text was updated successfully, but these errors were encountered: