Commit 96902a63db58701c690c5ce31a90bf073d76a63c

Thomas de Grivel 2015-09-18T04:39:37

Return NIL for unspecified properties.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/core/spec.lisp b/core/spec.lisp
index b68eba4..484cab8 100644
--- a/core/spec.lisp
+++ b/core/spec.lisp
@@ -23,9 +23,9 @@
 (defmethod specified-property ((res resource)
 			       (property symbol))
   (let ((value (get-property property (specified-properties res))))
-    (when (eq +undefined+ value)
-      (error "Property ~S not specified for ~S." property res))
-    value))
+    (if (eq +undefined+ value)
+        (values nil value)
+        value)))
 
 (defmethod (setf specified-property) (value
 				      (res resource)