From 63c32bb783bf2766537ccf8f525fa1f6683cca9a Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Thu, 7 May 2020 15:14:15 +0200 Subject: [PATCH] display current state on error --- lib/classes/GraphStream.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/classes/GraphStream.ts b/lib/classes/GraphStream.ts index 159130b..1f0cb11 100644 --- a/lib/classes/GraphStream.ts +++ b/lib/classes/GraphStream.ts @@ -52,6 +52,7 @@ export class GraphStream extends Transform { if (!states.includes (this._state)) { throw new Error (`invalid state to execute command ${instr} expected: ${states.join (', ')}`); + actual: ${this._state}`); } }