help: Properly error out when no browser is found

See #4045.

(cherry picked from commit 036b708d99)
This commit is contained in:
Fabian Homborg 2017-05-18 22:48:41 +02:00 committed by David Adam
parent 291d88a72f
commit 3cca94b268

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