Skip to content

Commit b992d10

Browse files
Improve no matching subtype error
1 parent 7d60da4 commit b992d10

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/metadata.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export class JsonObjectMetadata {
137137
}
138138

139139
if (resolvedType === undefined) {
140-
throw new Error(`No matching subtype returned for ${ctor.constructor.name}`);
140+
throw new Error(`No matching subtype returned for ${ctor.name}`);
141141
}
142142

143143
return this.getSubTypeMetadata(resolvedType, data);

0 commit comments

Comments
 (0)