Skip to content
Snippets Groups Projects
Commit 153ea77c authored by dtc's avatar dtc
Browse files

o Catch missing slots in condition-reader-function, and signal an error.

parent 6f4cb795
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@
;;; Carnegie Mellon University, and has been placed in the public domain.
;;;
(ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/error.lisp,v 1.58 2000/10/25 17:16:49 pw Exp $")
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/error.lisp,v 1.59 2001/01/09 05:21:22 dtc Exp $")
;;;
;;; **********************************************************************
;;;
......@@ -498,6 +498,8 @@
(if (eq val *empty-slot*)
(let ((actual-initargs (condition-actual-initargs condition))
(slot (find-slot (condition-class-cpl class) name)))
(unless slot
(error "Slot ~S of ~S missing." name condition))
(dolist (initarg (condition-slot-initargs slot))
(let ((val (getf actual-initargs initarg *empty-slot*)))
(unless (eq val *empty-slot*)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment