Merge pull request #16437 from keymanapp/change/web/missing-stub-error

change(web): enhance missing-stubs error
This commit is contained in:
Joshua Horton 2026-08-27 19:21:05 +07:00 committed by GitHub
commit 4e5eab7e0f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -327,7 +327,8 @@ 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 => `${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),