cat: Return a non-null value if an error occurred
This commit is contained in:
parent
71c9da90b6
commit
1944e8936d
Notes:
sideshowbarker
2024-07-17 11:29:41 +09:00
Author: https://github.com/LucasChollet Commit: https://github.com/SerenityOS/serenity/commit/1944e8936d Pull-request: https://github.com/SerenityOS/serenity/pull/16169 Reviewed-by: https://github.com/trflynn89
1 changed files with 1 additions and 1 deletions
|
@ -45,5 +45,5 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
return files.size() != paths.size();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue