commit: 21898bfb0b7de4301ef2290d4299fe864c46fccc
parent f7a210aac07f4507330ddf2f816dc1919d80031d
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Fri, 20 Sep 2024 02:53:36 +0200
cmd/link: unify error message formatting
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/cmd/link.c b/cmd/link.c
@@ -17,7 +17,7 @@ main(int argc, char *argv[])
if(link(argv[1], argv[2]) != 0)
{
- perror("link");
+ perror("link: error");
return 1;
}
diff --git a/test-cmd/link.sh b/test-cmd/link.sh
@@ -17,7 +17,7 @@ printf '%s\n' $RANDOM > "${basic_foo}.bar" || exit 1
cmp "${basic_foo}" "${basic_foo}.bar" || exit 1
rm "${basic_foo}" "${basic_foo}.bar" || exit 1
-t --exit=1 enoent1 '/var/empty/e/no/ent enoent_foo' 'link: No such file or directory
+t --exit=1 enoent1 '/var/empty/e/no/ent enoent_foo' 'link: error: No such file or directory
'
-t --exit=1 enoent2 'enoent_foo /var/empty/e/no/ent' 'link: No such file or directory
+t --exit=1 enoent2 'enoent_foo /var/empty/e/no/ent' 'link: error: No such file or directory
'