diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-05-08 01:32:33 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-05-08 01:32:33 +0200 |
commit | 3db38fbd0b84d066d64f9b637f1efcc35ebf8ce3 (patch) | |
tree | c02425d7ce8f0075e2effe676103d589a0f1b574 /src | |
parent | 799fe2cc36ec6099ebac08e6f53963d2eb0d3407 (diff) |
restore webpack splitting behavior
Diffstat (limited to 'src')
-rw-r--r-- | src/checkable.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/checkable.ts b/src/checkable.ts index 52eb54120..2255209f1 100644 --- a/src/checkable.ts +++ b/src/checkable.ts @@ -150,7 +150,7 @@ export namespace Checkable { function checkMap(target: any, prop: Prop, path: Path): any { if (typeof target !== "object") { - throw new SchemaError(`expected object for ${path}, got ${typeof target} instead`); + throw new SchemaError(`expected object for ${path}, got ${typeof target} instead`); } for (const key in target) { prop.keyProp.checker(key, prop.keyProp, path.concat([key])); @@ -195,7 +195,7 @@ export namespace Checkable { if (innerProp.optional) { continue; } - throw new SchemaError(`Property ${innerProp.propertyKey} missing on ${path} of ${typeName}`); + throw new SchemaError(`Property '${innerProp.propertyKey}' missing on '${path}' of '${typeName}'`); } if (!remainingPropNames.delete(innerProp.propertyKey)) { throw new SchemaError("assertion failed"); |