Print error when path is not found

This commit is contained in:
Cheng Zhao 2017-02-14 19:49:40 +09:00 committed by deepak1556
parent 528853efbf
commit cca1db47ee

View file

@ -58,6 +58,9 @@ class BundledDataSource : public content::URLDataSource {
int resource_id = entry->second; int resource_id = entry->second;
const ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); const ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
callback.Run(rb.LoadDataResourceBytes(resource_id)); callback.Run(rb.LoadDataResourceBytes(resource_id));
} else {
LOG(ERROR) << "Unable to find: " << path;
callback.Run(new base::RefCountedString());
} }
} }