mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 12:55:07 +00:00
FileManager: Fix file creation error message
s/String::format/String::formatted/ - the error message was not being formatted properly.
This commit is contained in:
parent
2d84c0c184
commit
fcd263f17b
1 changed files with 1 additions and 1 deletions
|
@ -511,7 +511,7 @@ void DirectoryView::setup_actions()
|
|||
int fd = creat(new_file_path.characters(), 0666);
|
||||
if (fd < 0) {
|
||||
auto saved_errno = errno;
|
||||
GUI::MessageBox::show(window(), String::format("creat(\"{}\") failed: {}", new_file_path, strerror(saved_errno)), "Error", GUI::MessageBox::Type::Error);
|
||||
GUI::MessageBox::show(window(), String::formatted("creat(\"{}\") failed: {}", new_file_path, strerror(saved_errno)), "Error", GUI::MessageBox::Type::Error);
|
||||
return;
|
||||
}
|
||||
rc = close(fd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue