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 <john.johansen@canonical.com>
This commit is contained in:
John Johansen 2011-10-07 14:42:55 -07:00
parent a30dfb6b19
commit 12a98135bf

View file

@ -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);
}