aboutsummaryrefslogtreecommitdiff
path: root/guix/scripts/substitute.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2015-09-03 23:37:33 +0200
committerLudovic Courtès <ludo@gnu.org>2015-09-04 00:13:05 +0200
commit9d2f48df024fab5b99f1243cdf912a926c0e1e3d (patch)
treedaa1ceec81a6625917219ba4d7cefa7b70f3960e /guix/scripts/substitute.scm
parent6fc92598ac7f76568545f4218173b529a3df9fdc (diff)
downloadgnu-guix-9d2f48df024fab5b99f1243cdf912a926c0e1e3d.tar
gnu-guix-9d2f48df024fab5b99f1243cdf912a926c0e1e3d.tar.gz
publish: Gracefully handle the lack of a deriver.
* guix/scripts/publish.scm (narinfo-string): Catch 'system-error' around 'load-derivation' call; return BASE-INFO upon ENOENT. This allows us to return the narinfo even if DERIVER is missing. Before that, the exception would be uncaught, leading to 500 Internal Error on the client side.
Diffstat (limited to 'guix/scripts/substitute.scm')
-rwxr-xr-xguix/scripts/substitute.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/guix/scripts/substitute.scm b/guix/scripts/substitute.scm
index 95aae2a372..e908bc997e 100755
--- a/guix/scripts/substitute.scm
+++ b/guix/scripts/substitute.scm
@@ -703,7 +703,7 @@ Internal tool to substitute a pre-built binary to a local build.\n"))
;;;
(define (display-narinfo-data narinfo)
- "Write to the current output port the contents of NARINFO is the format
+ "Write to the current output port the contents of NARINFO in the format
expected by the daemon."
(format #t "~a\n~a\n~a\n"
(narinfo-path narinfo)