chiark
/
gitweb
/
~mdw
/
sod
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
eaa0e15
)
src/pset-proto.lisp: Print type names in lowercase in error messages.
author
Mark Wooding
<mdw@distorted.org.uk>
Mon, 12 Aug 2019 10:14:43 +0000
(11:14 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Mon, 12 Aug 2019 11:40:24 +0000
(12:40 +0100)
src/pset-proto.lisp
patch
|
blob
|
blame
|
history
diff --git
a/src/pset-proto.lisp
b/src/pset-proto.lisp
index 09547e8df0baab61eae802cc720c2d153fecc363..f03ec51376746f0aaede4dceb291252b241a13bc 100644
(file)
--- a/
src/pset-proto.lisp
+++ b/
src/pset-proto.lisp
@@
-93,7
+93,8
@@
(defgeneric coerce-property-value (value type wanted)
;; say it didn't work.
(:method (value type wanted)
(if (eql type wanted) value
;; say it didn't work.
(:method (value type wanted)
(if (eql type wanted) value
- (error "Incorrect type: expected ~A but found ~A" wanted type)))
+ (error "Incorrect type: expected ~(~A~) but found ~(~A~)"
+ wanted type)))
;; If the caller asks for type T then give them the raw thing.
(:method (value type (wanted (eql t)))
;; If the caller asks for type T then give them the raw thing.
(:method (value type (wanted (eql t)))