From 15275c83dcb66f89de70a80fd1e437975f8ec7be Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Mon, 19 Dec 2011 20:58:00 +0100 Subject: [PATCH] Make failure to create cache directories fatal --- ccache.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ccache.c b/ccache.c index 7e0db22f5..9f6d003c4 100644 --- a/ccache.c +++ b/ccache.c @@ -267,8 +267,7 @@ get_path_in_cache(const char *name, const char *suffix) free(path); path = p; if (create_dir(path) != 0) { - cc_log("Failed to create %s: %s", path, strerror(errno)); - failed(); + fatal("Failed to create %s: %s", path, strerror(errno)); } } result = format("%s/%s%s", path, name + nlevels, suffix); -- 2.47.2