Skip to content

Commit

Permalink
Exception context: use stx-source (#928)
Browse files Browse the repository at this point in the history
More robust than AST-source
  • Loading branch information
vyzo authored Sep 25, 2023
1 parent 2f61000 commit a44f09c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/std/error.ss
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@
((_ here)
(with-syntax ((where
(cond
((or (AST-source #'here)
(AST-source stx))
((or (stx-source #'here)
(stx-source stx))
=> (lambda (locat)
(call-with-output-string "" (cut ##display-locat locat #t <>))))
(else
Expand Down

0 comments on commit a44f09c

Please sign in to comment.