mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:24:58 +00:00
LibCore: Use ErrorOr<T> for Core::File::copy_file()
This commit is contained in:
parent
c7e62d448c
commit
4a2b718ba2
8 changed files with 37 additions and 32 deletions
|
@ -61,7 +61,7 @@ int main(int argc, char** argv)
|
|||
if (result.error().tried_recursing)
|
||||
warnln("cp: -R not specified; omitting directory '{}'", source);
|
||||
else
|
||||
warnln("cp: unable to copy '{}' to '{}': {}", source, destination_path, result.error().error_code);
|
||||
warnln("cp: unable to copy '{}' to '{}': {}", source, destination_path, static_cast<Error const&>(result.error()));
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue