fixed log error in diagnostic
This commit is contained in:
@@ -149,7 +149,9 @@ async function connectGateway() {
|
|||||||
state.gateway.handshakeOk = true;
|
state.gateway.handshakeOk = true;
|
||||||
state.gateway.lastError = null;
|
state.gateway.lastError = null;
|
||||||
} else {
|
} else {
|
||||||
const error = response.error || JSON.stringify(response).slice(0, 200);
|
const error = typeof response.error === "string"
|
||||||
|
? response.error
|
||||||
|
: JSON.stringify(response.error || response).slice(0, 300);
|
||||||
throw new Error(`Handshake fehlgeschlagen: ${error}`);
|
throw new Error(`Handshake fehlgeschlagen: ${error}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user