change(web): enhance missing-stubs error

Relates-to: #15425

Build-bot: skip build:web
Test-bot: skip
This commit is contained in:
Joshua Horton 2026-08-25 13:22:04 -05:00
parent 6f5d3acfe0
commit 27b60a4fcc

View file

@ -327,7 +327,10 @@ export abstract class ContextManagerBase<MainConfig extends EngineConfiguration>
if(!requestedStub) {
if(keyboardId) {
throw new Error("No matching stub has been registered.");
const availableStubList = this.keyboardCache.getStubList().map((stub) => {
return `${stub.KI}@${stub.KLC}`
});
throw new Error(`No matching stub has been registered for keyboard ${keyboardId}. Available stubs: ${JSON.stringify(availableStubList)}`);
} else {
return {
keyboard: Promise.resolve(null),