You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exportconstmain=asl.deploy.asStateMachine(async()=>{letresult="";try{result="succeeded";//asl.createError will create an node error with Error and Cause propertiesthrowasl.runtime.createError("Test Error","Failed on purpose");}catch(err){result=`failed ${(errasasl.AslError).Error} (${(errasasl.AslError).Cause})`;}returnresult;});
exportconstmain=asl.deploy.asStateMachine(async()=>{try{returnasl.fail({error: "InternalFailure",cause: "bad luck",});}catch(e){constaslError=easasl.AslError;if("Error"inaslError&&"Cause"inaslError){return`${aslError.Error} (${aslError.Cause})`;}}return"this should not happen";});