diff options
author | Linus Groh <mail@linusgroh.de> | 2020-10-09 23:22:37 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-10-10 00:53:09 +0200 |
commit | fcd263f17ba73e44fdda6800cd2f7a3a8ee03f54 (patch) | |
tree | d350acf7efd7b7acca59215845925a445ef20ad0 | |
parent | 2d84c0c184bc5b2b6c6187d9a98d8f5cd558d226 (diff) | |
download | serenity-fcd263f17ba73e44fdda6800cd2f7a3a8ee03f54.zip |
FileManager: Fix file creation error message
s/String::format/String::formatted/ - the error message was not being
formatted properly.
-rw-r--r-- | Applications/FileManager/DirectoryView.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/FileManager/DirectoryView.cpp b/Applications/FileManager/DirectoryView.cpp index 45b3eeea96..d2360b060d 100644 --- a/Applications/FileManager/DirectoryView.cpp +++ b/Applications/FileManager/DirectoryView.cpp @@ -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); |