From 505a7114ec8317021cf9045f770a8eb78b6b3fc8 Mon Sep 17 00:00:00 2001 From: Sorunome Date: Sat, 28 Mar 2020 10:50:06 +0100 Subject: [PATCH] blah --- src/skype.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/skype.ts b/src/skype.ts index 54e5937..148683f 100644 --- a/src/skype.ts +++ b/src/skype.ts @@ -186,7 +186,10 @@ export class Skype { client.on("error", async (err: Error) => { log.error("Error when polling"); log.error(err.name); - log.error(err.cause.name); + const errr = err as any; + if (errr.cause) { + log.error(errr.cause.name); + } log.error(err.body); log.error(err); if (err.name === "UnexpectedHttpStatus") {