risor icon indicating copy to clipboard operation
risor copied to clipboard

Capture stack trace when an error is raised

Open myzie opened this issue 5 months ago • 0 comments

Something like this should be able to show the traceback tied to a given error:

try(
  func() {
    error("kaboom")
  },
  func(err) {
    print(err.traceback())
  }
)

myzie avatar Sep 27 '24 18:09 myzie