improve layout-invalid error message
authorChristophe Rhodes <csr21@cantab.net>
Fri, 11 Nov 2011 15:29:46 +0000 (15:29 +0000)
committerChristophe Rhodes <csr21@cantab.net>
Fri, 11 Nov 2011 15:29:46 +0000 (15:29 +0000)
It helps if we pass the right initialization forms to make-condition.

src/code/target-defstruct.lisp

index 2661f06..1775314 100644 (file)
                ((layout-invalid obj-layout)
                 (/noshow0 "LAYOUT-INVALID case")
                 (error 'layout-invalid
-                       :expected-type (layout-classoid obj-layout)
+                       :expected-type (layout-classoid layout)
                        :datum obj))
                (t
                 (let ((depthoid (layout-depthoid layout)))