Changeset 10334


Ignore:
Timestamp:
11/03/05 17:02:55 (16 years ago)
Author:
piso
Message:

Work in progress (tested).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/lisp/print-object.lisp

    r9045 r10334  
    22;;;
    33;;; Copyright (C) 2003-2005 Peter Graves
    4 ;;; $Id: print-object.lisp,v 1.9 2005-05-03 01:43:59 piso Exp $
     4;;; $Id: print-object.lisp,v 1.10 2005-11-03 17:02:55 piso Exp $
    55;;;
    66;;; This program is free software; you can redistribute it and/or
     
    6969      (restart-report restart stream)))
    7070
    71 (defmethod print-object ((c condition) stream)
     71(defmethod print-object ((c type-error) stream)
    7272  (if *print-escape*
    7373      (call-next-method)
    74       (let ((report (condition-report c)))
    75         (cond ((stringp report)
    76                (write-string report stream))
    77               (t
    78                (%format stream "~A" c))))))
     74      (format stream "The value ~S is not of type ~S."
     75              (type-error-datum c)
     76              (type-error-expected-type c))))
    7977
    8078(defmethod print-object ((c simple-condition) stream)
Note: See TracChangeset for help on using the changeset viewer.