Skip to content

Commit

Permalink
Improve no matching subtype error
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthiasKunnen committed Jan 27, 2021
1 parent 7d60da4 commit b992d10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export class JsonObjectMetadata {
}

if (resolvedType === undefined) {
throw new Error(`No matching subtype returned for ${ctor.constructor.name}`);
throw new Error(`No matching subtype returned for ${ctor.name}`);
}

return this.getSubTypeMetadata(resolvedType, data);
Expand Down

0 comments on commit b992d10

Please sign in to comment.