[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#32050: invoke (guix build utils) error reporting lacking

From: Maxim Cournoyer
Subject: bug#32050: invoke (guix build utils) error reporting lacking
Date: Wed, 04 Jul 2018 08:50:50 -0400

The error reported by `invoke' isn't accurate, and mutes important
output from the program invoked.

Example of a failed tar extraction:
--8<---------------cut here---------------start------------->8---
 In procedure invoke:
Throw to key `srfi-34' with args `(#<condition &invoke-error [program: "tar" 
arguments: ("xf" 
"--strip-components=1" "-C" 
"docbook-dssl-1.79/doc") exit-status: 127 term-signal: #f stop-signal: #f] 
--8<---------------cut here---------------end--------------->8---

While reproducing the same error in an containerized environment,
calling the command directly yields:

--8<---------------cut here---------------start------------->8---
tar xf yanfzfi7rdyf5scf5h65xbkn7xg0nnbn-docbook-dsssl-doc-1.79.tar.bz2 
--strip-components=1 -C $PWD docbook-dssl-1.79/doc
tar: docbook-dssl-1.79/doc: Not found in archive
tar: Exiting with failure status due to previous errors
address@hidden /tmp/docbook-dsssl-doc [env]# echo $?
--8<---------------cut here---------------end--------------->8---

Two observations:

1. invoke's reported exit status was wrong (127 rather than 2)
2. The useful error message "docbook-dssl-1.79/doc: Not found in
archive" was masked.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]