]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Make failure to create cache directories fatal
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 19 Dec 2011 19:58:00 +0000 (20:58 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 19 Dec 2011 19:58:00 +0000 (20:58 +0100)
ccache.c

index 7e0db22f5ce09db382e69ef5f24afbdf40320af3..9f6d003c496e425129c419720ad1b87db054e216 100644 (file)
--- 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);