From efcd2bfbfad9b43715415c82d4560e3ee4358403 Mon Sep 17 00:00:00 2001 From: Vedant K Date: Sat, 22 May 2021 10:17:00 +0530 Subject: [PATCH] fix(startup): crash when checking creds and server url is null --- src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.ts b/src/index.ts index ae44a54..367f167 100755 --- a/src/index.ts +++ b/src/index.ts @@ -156,6 +156,7 @@ const checkConfig = async (): Promise => { ) } catch (error) { if ( + error.response && error.response.data && error.response.data.error && error.response.data.error.reason === 'invalidCredentials'