If reference trap has no name, print its number.
authorChris Hanson <org/chris-hanson/cph>
Tue, 8 Jan 2002 05:03:56 +0000 (05:03 +0000)
committerChris Hanson <org/chris-hanson/cph>
Tue, 8 Jan 2002 05:03:56 +0000 (05:03 +0000)
v7/src/runtime/urtrap.scm

index c6bcf92d0b6da29be87f01423a8d7b52b043452a..29d71c5b6b1217a02d6e273a06b9e8f1d417c6d4 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: urtrap.scm,v 14.11 2002/01/07 04:26:29 cph Exp $
+$Id: urtrap.scm,v 14.12 2002/01/08 05:03:56 cph Exp $
 
 Copyright (c) 1988-1999, 2001, 2002 Massachusetts Institute of Technology
 
@@ -33,7 +33,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
                    (standard-unparser-method 'REFERENCE-TRAP
                      (lambda (trap port)
                        (write-char #\space port)
-                       (write (reference-trap-kind-name trap) port)))))
+                       (write (or (reference-trap-kind-name trap)
+                                  (reference-trap-kind trap))
+                              port)))))
   (kind #f read-only #t)
   (extra #f read-only #t))