Minor change
This commit is contained in:
parent
2f8d94bb1a
commit
e5063526e0
1 changed files with 3 additions and 1 deletions
|
@ -32,10 +32,12 @@ export class Communicator {
|
|||
return this.addFlashcardCallback!(c.card, s);
|
||||
case commandKinds.removeFlashcard:
|
||||
return this.removeFlashcardCallback!(c.card, s);
|
||||
default:
|
||||
console.warn(`Unimplemented command ${c}`);
|
||||
}
|
||||
} catch (e) {
|
||||
if (e instanceof ReferenceError)
|
||||
console.warn(`Unimplemented command ${c.commandKind}`);
|
||||
console.warn(`Unimplemented command ${c}`);
|
||||
else throw e;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue