]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Improve error message when failing to unlink a file to clean up
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 28 Feb 2010 15:25:44 +0000 (16:25 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 28 Feb 2010 15:25:44 +0000 (16:25 +0100)
cleanup.c

index af6e9137eb8c1ce70d56b0c0475fa4ee8460f143..3af7344837d9febc386d7a50f99b19949d840d0a 100644 (file)
--- a/cleanup.c
+++ b/cleanup.c
@@ -150,7 +150,7 @@ static void sort_and_clean(void)
                }
 
                if (unlink(files[i]->fname) != 0 && errno != ENOENT) {
-                       fprintf(stderr, "unlink %s - %s\n",
+                       fprintf(stderr, "ccache: failed to unlink %s (%s)\n",
                                files[i]->fname, strerror(errno));
                        continue;
                }