Skip to content

Pacman search: Return error if exec failed#37

Merged
ericm merged 1 commit intoericm:masterfrom
juergenhoetzel:pacman-error-reporting
Oct 25, 2021
Merged

Pacman search: Return error if exec failed#37
ericm merged 1 commit intoericm:masterfrom
juergenhoetzel:pacman-error-reporting

Conversation

@juergenhoetzel
Copy link
Contributor

Also include stderr in wrapped error to give the user a hint about
the cause of the error.

Improves error reporting:

→ ./yup emacs ==> Searching and sorting your query... ==> exit status 1: error: database 'core' is not valid (invalid or corrupted database (PGP signature)) error: database 'extra' is not valid (invalid or corrupted database (PGP signature)) error: database 'community' is not valid (invalid or corrupted database (PGP signature)) 

Instead of

==> Searching and sorting your query... ==> exit status 1 
Also include stderr in wrapped error to give the user a hint about the cause of the error.
@ericm ericm merged commit 793bf3a into ericm:master Oct 25, 2021
ericm added a commit that referenced this pull request Jan 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants