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
Currently, with a custom serverless component (e.g a modified serverless.js), if an error is thrown in serverless.js while running serverless, the exit status will be zero, indicating success. This makes it more difficult to ensure that a deploy was successful in an automated environment.
Proposal
Return a non-zero exit status if an error is thrown in serverless.js
Current workaround using tee (please suggest improvements if I'm just unaware of a better method)
serverless | tee sls.out # store cmd output to temporary file
! grep "error:" sls.out # grep for error string, negate exit code because not finding error string => serverless cmd was success
The text was updated successfully, but these errors were encountered:
Description
Currently, with a custom serverless component (e.g a modified serverless.js), if an error is thrown in serverless.js while running
serverless
, the exit status will be zero, indicating success. This makes it more difficult to ensure that a deploy was successful in an automated environment.Proposal
Return a non-zero exit status if an error is thrown in serverless.js
Current workaround using tee (please suggest improvements if I'm just unaware of a better method)
The text was updated successfully, but these errors were encountered: