ericm / yup

Arch Linux AUR Helper with ncurses functionality and better searching and sorting
https://aur.archlinux.org/packages/yup
GNU General Public License v3.0
139 stars 7 forks source link

Pacman search: Return error if exec failed #37

Closed juergenhoetzel closed 2 years ago

juergenhoetzel commented 2 years ago

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