actors: message-ref: Throw a better error on missing key
[8sync.git] / 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)