Add output of error
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Fabian Stamm 2020-10-28 01:42:24 +01:00
parent 24e46922c9
commit a6e6a01cd0

View File

@ -75,6 +75,7 @@ export class WebsocketConnectionManager {
const answer = (id: string, data: any, err?: Error | string) => { const answer = (id: string, data: any, err?: Error | string) => {
let error = false; let error = false;
if (err) { if (err) {
Logging.error(err);
if (err instanceof Error) { if (err instanceof Error) {
data = err.message; data = err.message;
} else { } else {