Do something useful when script errors
Posted: Wed Aug 22, 2018 3:14 am
I have scripts that are designed to throw errors
Can I catch this error in Switch and send the job off elsewhere instead of it just failing at this point?
Code: Select all
if (result !== "Success") {
throw new Error("Message: " + result);
}
return result;
}