wrap-cli
wrap-cli copied to clipboard
Print an informative error message when workflow execution fails due to an error in workflow file syntax
When workflow execution fails due to a syntax error in the workflow file, users should get an error message that helps them understand there is an issue with their workflow file and what the issue is. The user should understand that the workflow file is written incorrectly, where the mistake is located, and how they might fix the mistake.
For example: Right now if I leave out the "method" in a step, i get an error that says Error: Cannot read properties of undefined (reading 'length'). Since the error doesn't help me understand or debug the issue, it is not helpful!
Parent story: https://github.com/polywrap/monorepo/issues/984