mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-19 19:55:51 +00:00
Improve error message for unknown field
This commit is contained in:
@@ -667,7 +667,7 @@ var STObject = exports.Object = new SerializedType({
|
||||
|
||||
keys.forEach(function (key) {
|
||||
if ("undefined" === typeof INVERSE_FIELDS_MAP[key]) {
|
||||
throw new Error("JSON contains unknown field.");
|
||||
throw new Error("JSON contains unknown field: '" + key + "'");
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user