From 3db38fbd0b84d066d64f9b637f1efcc35ebf8ce3 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 8 May 2019 01:32:33 +0200 Subject: restore webpack splitting behavior --- src/checkable.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/checkable.ts') 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"); -- cgit v1.2.3