diff --git a/atom/browser/ui/webui/pdf_viewer_ui.cc b/atom/browser/ui/webui/pdf_viewer_ui.cc index 54fcdc31764e..adb470a8c159 100644 --- a/atom/browser/ui/webui/pdf_viewer_ui.cc +++ b/atom/browser/ui/webui/pdf_viewer_ui.cc @@ -58,6 +58,9 @@ class BundledDataSource : public content::URLDataSource { int resource_id = entry->second; const ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); callback.Run(rb.LoadDataResourceBytes(resource_id)); + } else { + LOG(ERROR) << "Unable to find: " << path; + callback.Run(new base::RefCountedString()); } }