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

Unified Diff: chrome/renderer/resources/extensions/schema_utils.js

Issue 10566018: Initial work to remove the notion of all extension message payloads as strings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review changes. Created 8 years, 6 months 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 | « chrome/renderer/resources/extensions/event.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/resources/extensions/schema_utils.js
diff --git a/chrome/renderer/resources/extensions/schema_utils.js b/chrome/renderer/resources/extensions/schema_utils.js
index a2587a2c95725ee53bf301bcf89df721e5e17401..8cd021287ccce2072084100886e26d96249f9035 100644
--- a/chrome/renderer/resources/extensions/schema_utils.js
+++ b/chrome/renderer/resources/extensions/schema_utils.js
@@ -36,7 +36,8 @@ if (chromeHidden.JSONSchemaValidator) {
message += ".";
throw new Error(message);
} else if (!parameterSchemas[i].optional) {
- throw new Error("Parameter " + (i + 1) + " is required.");
+ throw new Error("Parameter " + (i + 1) + " (" +
+ parameterSchemas[i].name + ") is required.");
}
}
};
« no previous file with comments | « chrome/renderer/resources/extensions/event.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698