diff options
author | Christopher Baines <mail@cbaines.net> | 2021-05-30 20:42:25 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2021-05-30 20:42:25 +0100 |
commit | 39f8f5c8aac149d88c0daec94d035ad68b6ffca7 (patch) | |
tree | 3722c07cf4f8a1965fd574de17846c9ae7d7acb6 | |
parent | a140f96599db68895c751ac564a78ee204b3bf81 (diff) | |
download | build-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.scm | 2 |
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) |