mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-22 15:44:45 +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:
committed by
Andreas Kling
parent
2d84c0c184
commit
fcd263f17b
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user