From e5063526e06ee8415587856c25ec18c66b3708d0 Mon Sep 17 00:00:00 2001 From: a Date: Fri, 7 Aug 2020 22:09:39 +0200 Subject: [PATCH] Minor change --- src/communication.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } }