aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2021-05-30 20:42:25 +0100
committerChristopher Baines <mail@cbaines.net>2021-05-30 20:42:25 +0100
commit39f8f5c8aac149d88c0daec94d035ad68b6ffca7 (patch)
tree3722c07cf4f8a1965fd574de17846c9ae7d7acb6
parenta140f96599db68895c751ac564a78ee204b3bf81 (diff)
downloadbuild-coordinator-39f8f5c8aac149d88c0daec94d035ad68b6ffca7.tar
build-coordinator-39f8f5c8aac149d88c0daec94d035ad68b6ffca7.tar.gz
Don't pretend that chunked inputs have been read
If the connection closes before all the data's been received. Most of a nar file isn't useful.
-rw-r--r--guix-build-coordinator/utils.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/guix-build-coordinator/utils.scm b/guix-build-coordinator/utils.scm
index 72f33c3..45302c8 100644
--- a/guix-build-coordinator/utils.scm
+++ b/guix-build-coordinator/utils.scm
@@ -180,7 +180,7 @@ upcoming chunk."
(match (read-line port)
((? eof-object?)
;; Connection closed prematurely: there's nothing left to read.
- 0)
+ (error "chunked input ended prematurely"))
(str
(let ((extension-start (string-index str
(lambda (c)