Ticket #977: ssax-parser-error.diff
File ssax-parser-error.diff, 675 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 port msg . specialising-msg*) 37 (signal (make-composite-condition 38 (make-property-condition 'ssax) 39 (make-property-condition 'parser-error) 40 (make-property-condition 'exn 'message msg 'arguments specialising-msg*)))) 37 41 38 42 (define (ssax:warn port msg . other-msg) 39 43 (apply cerr (cons* nl "Warning: " msg other-msg)))