return error for unkown record type

This commit is contained in:
0xmuralik 2023-04-04 10:43:32 +05:30
parent 76897789e9
commit 0f6a17527b

View File

@ -172,7 +172,11 @@ export class Record {
};
break;
default:
default: {
const err = new Error("Unsupported reocrd type");
console.error(err);
throw err;
};
}
return a
}