display current state on error

This commit is contained in:
Timo Hocker 2020-05-07 15:14:15 +02:00
parent ebd8936dae
commit 63c32bb783

View File

@ -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}`);
}
}