projects
/
sbcl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7a9b10
)
improve layout-invalid error message
author
Christophe Rhodes
<csr21@cantab.net>
Fri, 11 Nov 2011 15:29:46 +0000
(15:29 +0000)
committer
Christophe 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
patch
|
blob
|
history
diff --git
a/src/code/target-defstruct.lisp
b/src/code/target-defstruct.lisp
index
2661f06
..
1775314
100644
(file)
--- a/
src/code/target-defstruct.lisp
+++ b/
src/code/target-defstruct.lisp
@@
-533,7
+533,7
@@
((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)))