;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2017, 2021 Ludovic Courtès ;;; Copyright © 2017, 2018, 2019, 2020, 2021 Christopher Baines ;;; Copyright © 2017, 2018 Clément Lassieur ;;; Copyright © 2018 Pierre-Antoine Rouby ;;; Copyright © 2018 Marius Bakke ;;; ;;; This file is part of GNU Guix. ;;; ;;; GNU Guix is free software; you can redistribute it and/or modify it ;;; under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 3 of the License, or (at ;;; your option) any later version. ;;; ;;; GNU Guix is distributed in the hope that it will be useful, but ;;; WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public License ;;; along with GNU Guix. If not, see . (de
aboutsummaryrefslogtreecommitdiff
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 /nix/libutil/xml-writer.cc
parent6fc92598ac7f76568545f4218173b529a3df9fdc (diff)
downloadguix-9d2f48df024fab5b99f1243cdf912a926c0e1e3d.tar.gz
guix-9d2f48df024fab5b99f1243cdf912a926c0e1e3d.zip
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 'nix/libutil/xml-writer.cc')
0 files changed, 0 insertions, 0 deletions