Skip to content

Commit

Permalink
help: warn if specified 'man.viewer' is unsupported, instead of error…
Browse files Browse the repository at this point in the history
…ing out

When a document viewer that is unknown to the current version of git is
specified in the .git/config file, instead of erroring out the process
entirely, just issue a warning.  It might be that the user usually is
using a newer git that supports it (and the configuration is written for
that version) but is temporarily using an older git that does not know the
viewer.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Christian Couder authored and Junio C Hamano committed Mar 13, 2008
1 parent b8322ea commit 5fb0b3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion help.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ static int add_man_viewer(const char *value)
else if (!strcasecmp(value, "konqueror"))
do_add_man_viewer(exec_man_konqueror);
else
return error("'%s': unsupported man viewer.", value);
warning("'%s': unsupported man viewer.", value);

return 0;
}
Expand Down

0 comments on commit 5fb0b3e

Please sign in to comment.