Improved error responses
This commit is contained in:
parent
35afccfd77
commit
e671d4cba0
2 changed files with 27 additions and 38 deletions
|
|
@ -239,7 +239,7 @@ export class MI2 extends EventEmitter implements IBackend {
|
|||
}
|
||||
}
|
||||
if (parsed.resultRecords && parsed.resultRecords.resultClass == "error") {
|
||||
this.log("log", "An error occured: " + parsed.result("msg"));
|
||||
this.log("stderr", parsed.result("msg") || line);
|
||||
}
|
||||
if (parsed.outOfBandRecord) {
|
||||
parsed.outOfBandRecord.forEach(record => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue