commit: 39d74bbc14ae39af717ea7c886bdb30f1796a2b1
parent 3de33afe96990755dd10ff262933ffd14c8f72f4
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Fri, 20 Sep 2024 04:50:19 +0200
cmd/unlink: unify error message formatting
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/cmd/unlink.c b/cmd/unlink.c
@@ -13,7 +13,7 @@ main(int argc, char *argv[])
{
if(unlink(argv[i]) != 0)
{
- fprintf(stderr, "unlink: Cannot unlink ‘%s’: %s\n", argv[i], strerror(errno));
+ fprintf(stderr, "unlink: error: Failed unlinking '%s': %s\n", argv[i], strerror(errno));
return 1;
}
}
diff --git a/test-cmd/unlink.sh b/test-cmd/unlink.sh
@@ -10,5 +10,5 @@ touch unlink-this
t basic 'unlink-this' ''
rm -f unlink-this || exit 1
-t --exit=1 enoent /var/empty/e/no/ent 'unlink: Cannot unlink ‘/var/empty/e/no/ent’: No such file or directory
-'
+t --exit=1 enoent /var/empty/e/no/ent "unlink: error: Failed unlinking '/var/empty/e/no/ent': No such file or directory
+"