display current state on error
This commit is contained in:
parent
ebd8936dae
commit
63c32bb783
@ -52,6 +52,7 @@ export class GraphStream extends Transform {
|
|||||||
if (!states.includes (this._state)) {
|
if (!states.includes (this._state)) {
|
||||||
throw new Error (`invalid state to execute command ${instr}
|
throw new Error (`invalid state to execute command ${instr}
|
||||||
expected: ${states.join (', ')}`);
|
expected: ${states.join (', ')}`);
|
||||||
|
actual: ${this._state}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user