From 12a98135bf94e718d2c36ca67f612b6508beee2b Mon Sep 17 00:00:00 2001 From: John Johansen Date: Fri, 7 Oct 2011 14:42:55 -0700 Subject: [PATCH] Provide a more user friendly error message when cache is requested and fails to be created. Also don't make the warning output conditional on the showcache flag as we should be showing warning/errors by default. Signed-off-by: John Johansen --- parser/parser_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/parser/parser_main.c b/parser/parser_main.c index a255bf570..721582d6e 100644 --- a/parser/parser_main.c +++ b/parser/parser_main.c @@ -1007,8 +1007,7 @@ out: } else { unlink(cachetemp); - if (show_cache) - PERROR("Removed cache attempt: %s\n", cachetemp); + PERROR("Warning failed to create cache: %s\n", basename); } free(cachetemp); }