diff options
author | Ludovic Courtès <ludo@gnu.org> | 2021-02-24 15:05:06 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2021-02-24 23:44:10 +0100 |
commit | ee3226e9d54891c7e696912245e4904435be191c (patch) | |
tree | b5cb3bb3a72b2082fdb42cff18f8b03c34005c18 /guix/scripts/copy.scm | |
parent | e2572aa95007558b008f04decff095f46d20e087 (diff) |
substitute: Ensure backtraces go to file descriptor 4.
Fixes <https://bugs.gnu.org/46362>.
Reported by Zhu Zihao <all_but_last@163.com>.
Previously, backtraces due to uncaught exceptions would always to go
file descriptor 2; the daemon would read it and error out with something
like:
error: got unexpected path `Backtrace:' from substituter
This patch fixes that by ensuring backtraces are properly displayed on
file descriptor 4.
* guix/scripts/substitute.scm (with-redirected-error-port): New macro.
(guix-substitute): Use 'with-redirected-error-port' instead of 'parameterize'.
Diffstat (limited to 'guix/scripts/copy.scm')
0 files changed, 0 insertions, 0 deletions