help: Properly error out when no browser is found

See #4045.
This commit is contained in:
Fabian Homborg 2017-05-18 22:48:41 +02:00
parent 71f5fe1ece
commit 036b708d99

View file

@ -71,7 +71,7 @@ function help --description 'Show help for the fish shell'
end
end
if not set -q fish_browser
if not set -q fish_browser[1]
printf (_ '%s: Could not find a web browser.\n') help
printf (_ 'Please set the variable $BROWSER or fish_help_browser and try again.\n\n')
return 1