aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-05-08 01:32:33 +0200
committerFlorian Dold <florian.dold@gmail.com>2019-05-08 01:32:33 +0200
commit3db38fbd0b84d066d64f9b637f1efcc35ebf8ce3 (patch)
treec02425d7ce8f0075e2effe676103d589a0f1b574 /src
parent799fe2cc36ec6099ebac08e6f53963d2eb0d3407 (diff)
restore webpack splitting behavior
Diffstat (limited to 'src')
-rw-r--r--src/checkable.ts4
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");