1
0
forked from bonsai/harakit

cat(1p): formatting

This commit is contained in:
Emma Tebibyte 2023-08-14 12:08:03 -06:00
parent 3c7d4c41be
commit 6c73ffadd6
Signed by untrusted user: emma
GPG Key ID: 6D661C738815E7DD

View File

@ -116,13 +116,23 @@ int main(int argc, char *argv[]) {
fprintf(stderr, "%s: %s: Is a directory.\n", argv[0], argv[i]);
return EX_NOINPUT;
case ELOOP:
fprintf(stderr, "%s: %s: Is a symbolic link loop.\n", argv[0], argv[i]);
fprintf(
stderr,
"%s: %s: Is a symbolic link loop.\n",
argv[0],
argv[i]
);
return EX_UNAVAILABLE;
case EMFILE:
fprintf(stderr, "%s: Internal error.\n", argv[0]);
return EX_SOFTWARE;
case ENOENT: case ENOTDIR: case ENXIO:
fprintf(stderr, "%s: %s: No such file or directory.\n", argv[0], argv[i]);
fprintf(
stderr,
"%s: %s: No such file or directory.\n",
argv[0],
argv[i]
);
return EX_NOINPUT;
default:
fprintf(stderr, "%s: Unknown error.\n", argv[0]);