X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fcondition.lisp;h=81a0ce711e27e21001732717a02d8445a17a4c60;hb=77641d60a8b001bf3ccc755f3fb9881ee8d4753f;hp=caca67a0ea60f4ba4a911df171c87200d10e9f8d;hpb=9572928844c012d71ea60287bc10d3fe86538c54;p=sbcl.git diff --git a/src/code/condition.lisp b/src/code/condition.lisp index caca67a..81a0ce7 100644 --- a/src/code/condition.lisp +++ b/src/code/condition.lisp @@ -623,7 +623,9 @@ (type-error-expected-type condition))))) (def!method print-object ((condition type-error) stream) - (if *print-escape* + (if (and *print-escape* + (slot-boundp condition 'expected-type) + (slot-boundp condition 'datum)) (flet ((maybe-string (thing) (ignore-errors (write-to-string thing :lines 1 :readably nil :array nil :pretty t))))