mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-29 19:57:41 +00:00
Merge pull request #16437 from keymanapp/change/web/missing-stub-error
change(web): enhance missing-stubs error
This commit is contained in:
commit
4e5eab7e0f
1 changed files with 2 additions and 1 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue