Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exit code 0 after failure with --await-processing #1996

Open
raimohanska opened this issue Apr 19, 2023 · 0 comments
Open

Exit code 0 after failure with --await-processing #1996

raimohanska opened this issue Apr 19, 2023 · 0 comments

Comments

@raimohanska
Copy link

Expected Behavior

When processing fails in environment creation, process should exit with code 1.

Actual Behavior

It seems to exit with code 0

Steps to Reproduce

➜  contentful space environment create --environment-id juhatest --name juhatest --source master --await-processing --processing-timeout 50

Successfully created environment juhatest (juhatest) with source master
Waiting for processing...
Environment creation failed
➜  echo $?
0

Context

Happened both on my own machine (OSX, contentful-cli 2.2.20) and a CI server (not sure of contentful-cli version there).

Environment

  • Language Version:
  • Package Manager Version:
  • Browser Version:
  • Operating System:
  • Package Version:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant