diff options
author | Ludovic Courtès <ludo@gnu.org> | 2023-05-22 12:15:14 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2023-05-22 17:05:22 +0200 |
commit | 3f59fd6d114548480c719d4b8f8509bdf3e8dcca (patch) | |
tree | 6460b7b922d15d71f6342d5cc81f12f02c0e5cb7 /gnu/packages/sycl.scm | |
parent | 88a2871d8f82a7280486c2a30cc9b510ee8b2b5c (diff) | |
download | guix-3f59fd6d114548480c719d4b8f8509bdf3e8dcca.tar.gz guix-3f59fd6d114548480c719d4b8f8509bdf3e8dcca.zip |
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 'gnu/packages/sycl.scm')
0 files changed, 0 insertions, 0 deletions