forked from cerc-io/laconic-sdk
return error for unkown record type
This commit is contained in:
parent
76897789e9
commit
0f6a17527b
@ -172,7 +172,11 @@ export class Record {
|
||||
};
|
||||
break;
|
||||
|
||||
default:
|
||||
default: {
|
||||
const err = new Error("Unsupported reocrd type");
|
||||
console.error(err);
|
||||
throw err;
|
||||
};
|
||||
}
|
||||
return a
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user