Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(588)

Unified Diff: components/policy/core/common/schema_map.cc

Issue 2541793006: Clean up error message in schema-based policy validation (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/policy/core/common/schema_map.cc
diff --git a/components/policy/core/common/schema_map.cc b/components/policy/core/common/schema_map.cc
index 90d62c56e4f4d4fde43f013c6c48359e1568675a..dd2a3294e4bc645d7133725c2fbc641651b0e897 100644
--- a/components/policy/core/common/schema_map.cc
+++ b/components/policy/core/common/schema_map.cc
@@ -70,10 +70,10 @@ void SchemaMap::FilterBundle(PolicyBundle* bundle) const {
SCHEMA_STRICT,
&error_path,
&error)) {
- LOG(ERROR) << "Dropping policy " << policy_name << " for "
- << it->first.component_id
- << " because it's not valid: " << error
- << " at " << error_path;
+ LOG(ERROR) << "Dropping policy " << policy_name << " of component "
+ << it->first.component_id << " due to error at "
+ << (error_path.empty() ? "root" : error_path) << ": "
+ << error;
map->Erase(policy_name);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698