Slightly less unhelpful error handler
This commit is contained in:
parent
27c1c08bb6
commit
1e08230027
|
@ -278,7 +278,10 @@ export function ctor(info: QuasiValueConstructorInfo, ... items: QuasiValue[]):
|
|||
} else if ('quasiValue' in info) {
|
||||
return info.quasiValue(... items);
|
||||
} else {
|
||||
((_i: never) => { throw new Error("INTERNAL ERROR"); })(info);
|
||||
((info: never) => {
|
||||
console.error('ctor() in quasivalue.ts cannot handle', info);
|
||||
throw new Error("INTERNAL ERROR");
|
||||
})(info);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue