From f72e12ebf81438a0feac51930c6f9faf468e81c1 Mon Sep 17 00:00:00 2001 From: tonyrewin Date: Mon, 21 Nov 2022 11:41:11 +0300 Subject: [PATCH] fix-error-log --- src/graphql/client.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/graphql/client.ts b/src/graphql/client.ts index ecd35ce2..2c7a3e70 100644 --- a/src/graphql/client.ts +++ b/src/graphql/client.ts @@ -7,7 +7,8 @@ const localClient = (options) => { try { c = createClient({ ...options, url }) console.info('[graphql] using local client') - } catch (e) { + } catch (error) { + console.error(error) c = createClient(options) console.info( `[graphql] using ${options.url.replace('https://', '').replace('/graphql', '').replace('/', '')}`