diff options
Diffstat (limited to 'Userland/Applications/PDFViewer/PDFViewer.cpp')
-rw-r--r-- | Userland/Applications/PDFViewer/PDFViewer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Applications/PDFViewer/PDFViewer.cpp b/Userland/Applications/PDFViewer/PDFViewer.cpp index f69383a7cf..7c790d8def 100644 --- a/Userland/Applications/PDFViewer/PDFViewer.cpp +++ b/Userland/Applications/PDFViewer/PDFViewer.cpp @@ -89,7 +89,8 @@ void PDFViewer::paint_event(GUI::PaintEvent& event) return; auto handle_error = [&](PDF::Error& error) { - GUI::MessageBox::show_error(nullptr, String::formatted("Failed to render page:\n{}", error.message())); + warnln("{}", error.message()); + GUI::MessageBox::show_error(nullptr, "Failed to render the page."sv); m_document.clear(); }; |