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
Add a utility function called decode_error that parse the zencode logs and return only the real errors, i.e. the strings that starts with a [!] both in logs and in the J64 TRACE. Example of usage
import{zencode_exec,decode_error}from'zenroom'zencode_exec(scripts,{}).catch(decode_error);// same asletresulttry{result=awaitzencode_exec(script,{})}catch(decode_error(result)}
In both cases the error should be printed to console.error and also returned.
I understand this belongs to the js wrapper shipped with npm. It is good to have, hoping it can be done without adding dependencies to the npm package, where we proudly have zero.
Add a utility function called
decode_error
that parse the zencode logs and return only the real errors, i.e. the strings that starts with a[!]
both inlogs
and in theJ64 TRACE
. Example of usageIn both cases the error should be printed to console.error and also returned.
Right @puria ?
The text was updated successfully, but these errors were encountered: