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
When an error is thrown in an async main of a shell script, we get this warning:
(node:15576) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:15576) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
We can probably fix this by making run-script async in packages/cli/src/run-script/run-script.ts and wrap up main(args) with a trycatch (err) { console.log(err) }
The text was updated successfully, but these errors were encountered:
When an error is thrown in an
async main
of a shell script, we get this warning:We can probably fix this by making
run-script
async inpackages/cli/src/run-script/run-script.ts
and wrap upmain(args)
with atrycatch (err) { console.log(err) }
The text was updated successfully, but these errors were encountered: