diff --git a/src/communication.ts b/src/communication.ts index 02734d9..4a9cb8e 100644 --- a/src/communication.ts +++ b/src/communication.ts @@ -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; } }