This commit is contained in:
Sorunome 2020-03-28 10:58:41 +01:00
parent e6bf5266ae
commit ba9586014e
No known key found for this signature in database
GPG Key ID: B19471D07FC9BE9C

View File

@ -185,13 +185,13 @@ export class Skype {
const MINUTE = 60000; const MINUTE = 60000;
client.on("error", async (err: Error) => { client.on("error", async (err: Error) => {
log.error("Error when polling"); log.error("Error when polling");
log.error(err.name); log.error("name: ", err.name);
log.error(err.code);
const errr = err as any; const errr = err as any;
if (errr.cause) { if (errr.cause) {
log.error(errr.cause.name); log.error("cause name: ", errr.cause.name);
} }
log.error(errr.body); log.error("code: ", errr.code);
log.error("body: ", errr.body);
log.error(err); log.error(err);
if (err.name === "UnexpectedHttpStatus") { if (err.name === "UnexpectedHttpStatus") {
await this.puppet.sendStatusMessage(puppetId, "Error: " + err); await this.puppet.sendStatusMessage(puppetId, "Error: " + err);