diff options
author | LuK1337 <priv.luk@gmail.com> | 2021-08-01 13:04:14 +0200 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2021-08-01 19:26:57 +0430 |
commit | feacf774fbf1eb7569e36abcb5e6995a5ee9ac93 (patch) | |
tree | f89281fe38c2e3b29628a6dafff839e6ab2a7e8c /Userland/Utilities/cksum.cpp | |
parent | eb6cf00c0e6ff6a215614e0a8fa0024855ccdcff (diff) | |
download | serenity-feacf774fbf1eb7569e36abcb5e6995a5ee9ac93.zip |
cksum: Print argv[0] on failed read
Forgot to do it in c5df5e5.
Diffstat (limited to 'Userland/Utilities/cksum.cpp')
-rw-r--r-- | Userland/Utilities/cksum.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Utilities/cksum.cpp b/Userland/Utilities/cksum.cpp index b545033f22..46250a664c 100644 --- a/Userland/Utilities/cksum.cpp +++ b/Userland/Utilities/cksum.cpp @@ -59,7 +59,7 @@ int main(int argc, char** argv) while (!file->eof() && !file->has_error()) crc32.update(file->read(PAGE_SIZE)); if (file->has_error()) { - warnln("Failed to read {}: {}", filepath, file->error_string()); + warnln("{}: Failed to read {}: {}", argv[0], filepath, file->error_string()); fail = true; continue; } @@ -69,7 +69,7 @@ int main(int argc, char** argv) while (!file->eof() && !file->has_error()) adler32.update(file->read(PAGE_SIZE)); if (file->has_error()) { - warnln("Failed to read {}: {}", filepath, file->error_string()); + warnln("{}: Failed to read {}: {}", argv[0], filepath, file->error_string()); fail = true; continue; } |