Closed sorawee closed 1 year ago
This is the relevant code: https://github.com/racket/drracket/blob/master/drracket/drracket/private/debug.rkt#L369
I'm happy with a slightly different predicate there. Is this the "x" in the REPL you want to show? So you want the call to display-srclocs-in-error
to happen?
Yes, I want display-srclocs-in-error
to be called. What I don't know is whether it should be unconditionally called, or whether it should be called for (1) non-exn:fail:user
OR (2) something with prop:exn:srclocs
@sorawee is what I pushed what you have in mind? the program in the test case in the commit message is my attempt to distill the original bug report into a small example.
Yep, that appears to be what I had in mind. So I will close the issue as fixed.
I have an error that interfaces end users, so I don't want to show the stacktrace (esp. in the command-line).
exn:fail:user
fits this purpose. However, when givenprop:exn:srclocs
on top ofexn:fail:user
, the jump to error "X" button is gone too. It would be nice if that's not the case.