]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Log strerror(errno) on failure to stat the compiler's stdout file
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 7 Oct 2012 15:24:32 +0000 (17:24 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 7 Oct 2012 15:24:32 +0000 (17:24 +0200)
ccache.c

index 0e9348603b9d9ef4f360a03c5d964ad0cacf766e..70ba11fce3d95e3a5d1f3fe54775ad589b0722fb 100644 (file)
--- a/ccache.c
+++ b/ccache.c
@@ -612,7 +612,8 @@ to_cache(struct args *args)
        args_pop(args, 3);
 
        if (stat(tmp_stdout, &st) != 0) {
-               fatal("Could not create %s (permission denied?)", tmp_stdout);
+               fatal("Could not stat %s (permission denied when creating?): %s",
+                     tmp_stdout, strerror(errno));
        }
        if (st.st_size != 0) {
                cc_log("Compiler produced stdout");