Improved error responses

This commit is contained in:
WebFreak001 2016-03-06 12:08:57 +01:00
commit e671d4cba0
2 changed files with 27 additions and 38 deletions

View file

@ -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 => {