Print default error in the pacman cnf-handler

Pacman *only* prints the package if it exists, no error or anything.

Fixes #7327.
This commit is contained in:
Fabian Homborg 2020-09-11 20:56:38 +02:00
parent 0e9b496bba
commit 691deac1e4

View file

@ -64,6 +64,8 @@ else if type -q pacman
# otherwise pacman will try *every path*, and e.g. bash-completion
# isn't helpful.
string match -q '/*' -- $argv[1]; or set paths $PATH/$argv[1]
# Pacman only prints the path, so we still need to print the error.
__fish_default_command_not_found_handler $argv[1]
pacman -F $paths
end
end