summaryrefslogtreecommitdiff
path: root/guix/packages.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2012-10-27 14:56:38 +0200
committerLudovic Courtès <ludo@gnu.org>2012-10-27 14:56:46 +0200
commit0778385802a7f2eb8c661301e37417e7add81261 (patch)
tree8257183f7a16958003ff92305a90e85ca552cb3b /guix/packages.scm
parent5e6c90121f88b05b6d61e2b36aa27f5f4ce21bcd (diff)
guix-build: Gracefully handle `&package-input-error' conditions.
* guix/packages.scm: Export `package-error?' and `package-input-error?'. * guix-build.in (guix-build): Catch `&package-input-error' conditions, print a human-readable message, and exit.
Diffstat (limited to 'guix/packages.scm')
-rw-r--r--guix/packages.scm2
1 files changed, 2 insertions, 0 deletions
diff --git a/guix/packages.scm b/guix/packages.scm
index 0020783211..25acab1864 100644
--- a/guix/packages.scm
+++ b/guix/packages.scm
@@ -61,8 +61,10 @@
package-cross-derivation
&package-error
+ package-error?
package-error-package
&package-input-error
+ package-input-error?
package-error-invalid-input))
;;; Commentary: