diff --git a/src/types.ts b/src/types.ts index dbe5b15..80009ef 100644 --- a/src/types.ts +++ b/src/types.ts @@ -172,7 +172,11 @@ export class Record { }; break; - default: + default: { + const err = new Error("Unsupported reocrd type"); + console.error(err); + throw err; + }; } return a }