TerminalError
/ TerminalException
could output with more details in the cli #1712
Closed
Description
Hi 👋, first thanks for your work on restate and what's coming!
Might be an idea to output a TerminalError
with the status completed
and with Error
/ Caused by
and even the Trace ID
?
Cause atm, there's no UI diff between a successful completed inv / an inv that has been terminated with a TerminalError
e.g with this simple workflow:
export const throwableWorkflow = workflow({
name: "throwable",
handlers: {
run: async (ctx: WorkflowContext) => {
throw new TerminalError("Should show up in the restate cli?", { errorCode: 500 })
},
},
})
Thanks!