Printing a stack trace in convex runtime
I'm trying to catch an error from a mutation but still log the stack trace. It looks like the
stack
property isn't present on the error object, and err.trace()
just gets the location of the catch.
5 Replies
Interesting. Unless someone else from the team chimes in about some wrinkle I'm not aware of, seems like we could do better here. I filed an internal task.
@erquhart this should be fixed now.
Error.stack
has the same format as in ChromeOh, nice!
Will update and check it out
great! thanks for reporting. the stack trace should work with npm packages like 'error-stack-parser' if you want a structured stack trace object
hadn't heard of that, will def check out