aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2020-10-07 17:43:12 +0100
committerChristopher Baines <mail@cbaines.net>2020-10-07 17:43:12 +0100
commite701d4d7f24a11d94cf504e7efbcee4e1091b092 (patch)
tree0de70d48e86af6dcb1279c90a845072c0d9fe88a
parentf8b6efef040b5a7401d1b4baf22417ce5e7a1286 (diff)
downloadbuild-coordinator-e701d4d7f24a11d94cf504e7efbcee4e1091b092.tar
build-coordinator-e701d4d7f24a11d94cf504e7efbcee4e1091b092.tar.gz
Fix missing bad-request procedure
-rw-r--r--guix-build-coordinator/agent-messaging/http/server.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/guix-build-coordinator/agent-messaging/http/server.scm b/guix-build-coordinator/agent-messaging/http/server.scm
index 3038be0..0b2f963 100644
--- a/guix-build-coordinator/agent-messaging/http/server.scm
+++ b/guix-build-coordinator/agent-messaging/http/server.scm
@@ -43,6 +43,9 @@
#:use-module (guix-build-coordinator coordinator)
#:export (http-agent-messaging-start-server))
+(define (bad-request message . args)
+ (throw 'bad-request message args))
+
(define (fixed/read-request-body r)
"Reads the request body from R, as a bytevector. Return ‘#f’
if there was no request body."