Ticket #977: parse-error.diff
File parse-error.diff, 581 bytes (added by , 11 years ago) |
---|
-
ssax-chicken.scm
33 33 (core:assert (= k 1) "attempt to call ssax:make-string with k != 1") 34 34 (string x)) 35 35 36 (define parser-error error) 36 (define (parser-error . args) 37 (signal (make-composite-condition 38 (make-property-condition 'ssax) 39 (make-property-condition 'parse-error 'message args)))) 37 40 38 41 (define (ssax:warn port msg . other-msg) 39 42 (apply cerr (cons* nl "Warning: " msg other-msg)))