actors: message-ref: Throw a better error on missing key
authorChristopher Allan Webber <cwebber@dustycloud.org>
Fri, 22 Apr 2016 15:31:25 +0000 (10:31 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Mon, 25 Apr 2016 14:25:37 +0000 (09:25 -0500)
* 8sync/systems/actors (message-ref): Throw 'message-missing-key
  on errors now.

8sync/systems/actors.scm

index c08916ea5d39a9b1465d7c28e2895f4523e436fa..79beb163abdb7cd4e7135dfda95866bcb74cb1d6 100644 (file)
@@ -476,7 +476,7 @@ If key not found and DFLT not provided, throw an error."
   (let ((result (assoc key (message-body message))))
     (if result (cdr result)
         (if (eq? dflt %nothing-provided)
-            (throw 'message-body-lacks-key
+            (throw 'message-missing-key
                    "Message body does not contain key and no default provided"
                    #:key key
                    #:message message)