fix-error-log

This commit is contained in:
tonyrewin 2022-11-21 11:41:11 +03:00
parent 6d03373f9c
commit f72e12ebf8

View File

@ -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('/', '')}`