mirror of
https://github.com/plantroon/mx-puppet-xmpp.git
synced 2024-11-14 23:41:40 +00:00
.
This commit is contained in:
parent
e6bf5266ae
commit
ba9586014e
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user