mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Print error when path is not found
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user