Minor change

This commit is contained in:
a 2020-08-07 22:09:39 +02:00
parent 2f8d94bb1a
commit e5063526e0

View file

@ -32,10 +32,12 @@ export class Communicator {
return this.addFlashcardCallback!(c.card, s); return this.addFlashcardCallback!(c.card, s);
case commandKinds.removeFlashcard: case commandKinds.removeFlashcard:
return this.removeFlashcardCallback!(c.card, s); return this.removeFlashcardCallback!(c.card, s);
default:
console.warn(`Unimplemented command ${c}`);
} }
} catch (e) { } catch (e) {
if (e instanceof ReferenceError) if (e instanceof ReferenceError)
console.warn(`Unimplemented command ${c.commandKind}`); console.warn(`Unimplemented command ${c}`);
else throw e; else throw e;
} }
} }