From: Nikodemus Siivola Date: Thu, 19 Apr 2012 14:25:29 +0000 (+0300) Subject: prettier encoding/decoding error messages X-Git-Url: http://repo.macrolet.net/gitweb/?a=commitdiff_plain;h=33c86f6bca21d79cacc4efe98fd4ac425e1186ab;p=sbcl.git prettier encoding/decoding error messages ":ASCII stream encoding error on #" ":ASCII stream decoding error on #" ":ASCII c-string encoding error ...>" ":ASCII c-string decoding error ...>" --- diff --git a/src/code/error.lisp b/src/code/error.lisp index db40332..7270941 100644 --- a/src/code/error.lisp +++ b/src/code/error.lisp @@ -116,10 +116,10 @@ (lambda (c s) (let ((stream (stream-error-stream c)) (code (character-encoding-error-code c))) - (format s "~@" - stream ':external-format (character-coding-error-external-format c) + stream code))))) (define-condition stream-decoding-error (stream-error character-decoding-error) () @@ -127,17 +127,17 @@ (lambda (c s) (let ((stream (stream-error-stream c)) (octets (character-decoding-error-octets c))) - (format s "~@" - stream ':external-format (character-coding-error-external-format c) + stream octets))))) (define-condition c-string-encoding-error (character-encoding-error) () (:report (lambda (c s) - (format s "~@" (character-coding-error-external-format c) (character-encoding-error-code c))))) @@ -146,7 +146,7 @@ () (:report (lambda (c s) - (format s "~@" (character-coding-error-external-format c) (character-decoding-error-octets c)))))