help: warn if specified 'man.viewer' is unsupported, instead of erroring 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>
Christian Couder committed
Mar 13, 2008 at 07:10 UTC
5fb0b3e007d6465af99d08121d46be82c649df5a
1 file changed
+1
-1
help.c
+1
-1
@@ -139,7 +139,7 @@ static int add_man_viewer(const char *value)
139
else if (!strcasecmp(value, "konqueror"))
140
do_add_man_viewer(exec_man_konqueror);
141
else
142
- return error("'%s': unsupported man viewer.", value);
142
+ warning("'%s': unsupported man viewer.", value);
143
144
return 0;
145
}