Print error when path is not found
This commit is contained in:
parent
528853efbf
commit
cca1db47ee
1 changed files with 3 additions and 0 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue