summary refs log tree commit diff
path: root/doc/local.mk
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2023-05-22 12:15:14 +0200
committerLudovic Courtès <ludo@gnu.org>2023-05-22 17:05:22 +0200
commit3f59fd6d114548480c719d4b8f8509bdf3e8dcca (patch)
tree6460b7b922d15d71f6342d5cc81f12f02c0e5cb7 /doc/local.mk
parent88a2871d8f82a7280486c2a30cc9b510ee8b2b5c (diff)
downloadguix-3f59fd6d114548480c719d4b8f8509bdf3e8dcca.tar.gz
substitute: Rethrow with 'raise-exception', not 'throw'.
Rethrowing with 'throw' doesn't work as intended when the exception
being rethrown is a SRFI-34 exception.

Fixes <https://issues.guix.gnu.org/55820>.

* guix/scripts/substitute.scm (kind-and-args-exception?): New variable.
(call-with-cached-connection): Rewrite using 'guard' instead of 'catch'
and 'raise' instead of 'throw'.
(system-error?): Use 'kind-and-args-exception?' instead of local
definition.
Diffstat (limited to 'doc/local.mk')
0 files changed, 0 insertions, 0 deletions