Skip to content

Commit 1210e99

Browse files
Copilotjackfirth
andcommitted
Address code review feedback: improve error handling and logging
Co-authored-by: jackfirth <[email protected]>
1 parent f103d6a commit 1210e99

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

private/analysis.rkt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,7 @@
156156
(define valid? (syntax-contains-path? expanded path))
157157
(unless valid?
158158
(log-resyntax-warning
159-
(string-append
160-
"ignoring property with out-of-syntax path returned by analyzer\n"
161-
" path: ~a\n"
162-
" property key: ~a")
159+
"ignoring property with out-of-syntax path returned by analyzer~n path: ~a~n property key: ~a"
163160
path
164161
key))
165162
valid?))

private/syntax-path.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@
566566

567567

568568
(define (syntax-contains-path? init-stx path)
569-
(with-handlers ([exn:fail:contract? (λ (_) #false)])
569+
(with-handlers ([exn:fail? (λ (_) #false)])
570570
(syntax-ref init-stx path)
571571
#true))
572572

0 commit comments

Comments
 (0)