mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Remove duplication in error of unknown key.
"Unknown key in field Y" instead of "Unknown key Y in field Y"
This commit is contained in:
@@ -233,7 +233,7 @@ var checkSubtree = function (value, pattern) {
|
||||
checkSubtree(subValue, optionalPatterns[key]);
|
||||
} else {
|
||||
if (!unknownKeysAllowed)
|
||||
throw new Match.Error("Unknown key '" + key + "'");
|
||||
throw new Match.Error("Unknown key");
|
||||
}
|
||||
} catch (err) {
|
||||
if (err instanceof Match.Error) {
|
||||
|
||||
Reference in New Issue
Block a user