mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Improve a “match” error message
This commit is contained in:
@@ -249,8 +249,8 @@ var checkSubtree = function (value, pattern) {
|
||||
if (pattern instanceof Function) {
|
||||
if (value instanceof pattern)
|
||||
return;
|
||||
// XXX what if .name isn't defined
|
||||
throw new Match.Error("Expected " + pattern.name);
|
||||
throw new Match.Error("Expected " + (pattern.name ||
|
||||
"particular constructor"));
|
||||
}
|
||||
|
||||
var unknownKeysAllowed = false;
|
||||
|
||||
Reference in New Issue
Block a user