Skip to content

Commit 4a34af4

Browse files
committed
Update fetchJson.js
1 parent 14e6a99 commit 4a34af4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/services/api/fetchJson.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = async function fetchJson(url, options = undefined, log = false)
2121
console.log('Request to', url, 'timed out and was aborted')
2222
} else if (log) {
2323
console.warn(e)
24-
} else {
24+
} else if (e instanceof Error) {
2525
console.warn(e.message, '\n', e.code, `\nUnable to fetch ${url}`)
2626
}
2727
return null

0 commit comments

Comments
 (0)