mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-03 22:27:41 +00:00
change(web): enhance missing-stubs error
Relates-to: #15425 Build-bot: skip build:web Test-bot: skip
This commit is contained in:
parent
6f5d3acfe0
commit
27b60a4fcc
1 changed files with 4 additions and 1 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue