From 40ebe02ada92c981f9cbd43bd2fad41185ca5834 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Tue, 3 Feb 2009 14:47:04 +0100 Subject: [PATCH] Use warn() for warnings emitted during config file loading --- tig.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tig.c b/tig.c index 657fe10..fa03109 100644 --- a/tig.c +++ b/tig.c @@ -1649,8 +1649,8 @@ read_option(char *opt, size_t optlen, char *value, size_t valuelen) } if (status == ERR) { - fprintf(stderr, "Error on line %d, near '%.*s': %s\n", - config_lineno, (int) optlen, opt, config_msg); + warn("Error on line %d, near '%.*s': %s", + config_lineno, (int) optlen, opt, config_msg); config_errors = TRUE; } @@ -1672,7 +1672,7 @@ load_option_file(const char *path) if (read_properties(&io, " \t", read_option) == ERR || config_errors == TRUE) - fprintf(stderr, "Errors while loading %s.\n", path); + warn("Errors while loading %s.", path); } static int -- 2.30.2