fix: send full error including execa error to report #55

This commit is contained in:
Jelle Glebbeek
2021-05-19 12:49:09 +02:00
parent 365100e190
commit ded98dca2f

View File

@@ -43,7 +43,7 @@ class Query {
return stdout
} catch(e) {
if(!this.environment.errorHandler.checkError(e.stderr, this.identifier)) {
this.environment.errorHandler.raiseUnhandledError("Please report this error.\n" + e.stderr, this.identifier);
this.environment.errorHandler.raiseUnhandledError("Please report this error.\n" + JSON.stringify(e, null, 2), this.identifier);
}
return "{}";
}