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

Allow Task to fail non-critically #361

Open
1 of 4 tasks
ilovelinux opened this issue Aug 12, 2023 · 0 comments
Open
1 of 4 tasks

Allow Task to fail non-critically #361

ilovelinux opened this issue Aug 12, 2023 · 0 comments

Comments

@ilovelinux
Copy link

ilovelinux commented Aug 12, 2023

I'm submitting a...

  • Bug report
  • Feature request
  • Documentation issue or request
  • Other... Please describe:

Expected Behavior

Tasks may want to "skip" or throw an error without stopping the building/deployment process. I would call that a warning, not an error.

Current Behavior

Tasks can either succeed or fail critically.

Workaround

Task function can return a string or an array of strings. Those will be logged as info-level logging messages. Still, the green check will be shown.

Idea

We could make a custom error to indicate non-critical failure. When this is thrown, the Task fails with a warning instead of stopping the process.

Your Environment

  • Jovo CLI version used: 4.1.8
  • Operating System: Mac OS X
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