summaryrefslogtreecommitdiff
path: root/Userland/Applications/PDFViewer/PDFViewerWidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Applications/PDFViewer/PDFViewerWidget.cpp')
-rw-r--r--Userland/Applications/PDFViewer/PDFViewerWidget.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Applications/PDFViewer/PDFViewerWidget.cpp b/Userland/Applications/PDFViewer/PDFViewerWidget.cpp
index 9e8792058e..bfcce0df06 100644
--- a/Userland/Applications/PDFViewer/PDFViewerWidget.cpp
+++ b/Userland/Applications/PDFViewer/PDFViewerWidget.cpp
@@ -176,7 +176,8 @@ void PDFViewerWidget::open_file(Core::File& file)
auto handle_error = [&]<typename T>(PDF::PDFErrorOr<T> maybe_error) {
if (maybe_error.is_error()) {
auto error = maybe_error.release_error();
- GUI::MessageBox::show_error(nullptr, String::formatted("Couldn't load PDF {}:\n{}", file.filename(), error.message()));
+ warnln("{}", error.message());
+ GUI::MessageBox::show_error(nullptr, "Failed to load the document."sv);
return true;
}
return false;