Slightly less unhelpful error handler

This commit is contained in:
Tony Garnock-Jones 2024-05-28 13:54:03 +02:00
parent 27c1c08bb6
commit 1e08230027
1 changed files with 4 additions and 1 deletions

View File

@ -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);
}
}