guix/guix/scripts
Ludovic Courtès ee3226e9d5
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'.
2021-02-24 23:44:10 +01:00
..
container
git
import
system
archive.scm
authenticate.scm
build.scm
challenge.scm
container.scm
copy.scm
deploy.scm
describe.scm
discover.scm
download.scm
edit.scm
environment.scm
gc.scm
git.scm
graph.scm
hash.scm
import.scm
install.scm
lint.scm
offload.scm
pack.scm
package.scm
perform-download.scm
processes.scm
publish.scm
pull.scm
refresh.scm
remove.scm
repl.scm
search.scm
show.scm
size.scm
substitute.scm substitute: Ensure backtraces go to file descriptor 4. 2021-02-24 23:44:10 +01:00
system.scm scripts: system: Accept <image> records as input. 2021-02-17 10:57:02 +01:00
time-machine.scm
upgrade.scm
weather.scm