jovotech / jovo-cli

🛠 Command Line Interface for the Jovo Framework: Makes voice experience deployment a breeze, including features like local development and staging.
https://www.jovo.tech/marketplace/jovo-cli
Apache License 2.0
57 stars 31 forks source link

Allow Task to fail non-critically #361

Open ilovelinux opened 1 year ago

ilovelinux commented 1 year ago

I'm submitting a...

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