- Notifications
You must be signed in to change notification settings - Fork62
Open
Description
Currently none of the Elsa functions (Elsa.stats
,Elsa.readFile
, etc) throw any exceptions in JS when they encounter errors, they instead print the error and exit with status code 1. There is no way to gracefully handle these errors from the JS code. These functions should throw exceptions instead of exiting so that the script (example below) can catch and handle them.
try{Elsa.stats("non-existent");}catch(error){console.error(error);}