diff --git a/racket/collects/unstable/error.rkt b/racket/collects/unstable/error.rkt index 17854d3ec3..e5dc3a1dfc 100644 --- a/racket/collects/unstable/error.rkt +++ b/racket/collects/unstable/error.rkt @@ -87,7 +87,9 @@ TODO (raise (exn:fail:syntax message (current-continuation-marks) - (if source-stx (cons source-stx extra-stxs) extra-stxs))))) + (cond [sub-stx (cons sub-stx extra-stxs)] + [stx (cons stx extra-stxs)] + [else extra-stxs]))))) ;; ----