Browse Source

feat(nocodb): include 'EHOSTDOWN' and 'EHOSTUNREACH'

pull/5154/head
Wing-Kam Wong 2 years ago
parent
commit
d9b1ba77fc
  1. 2
      packages/nocodb/src/lib/version-upgrader/ncUpgradeErrors.ts

2
packages/nocodb/src/lib/version-upgrader/ncUpgradeErrors.ts

@ -1,5 +1,5 @@
export function throwTimeoutError(e, timeoutErrorInfo) {
if (e.code === 'ETIMEDOUT') {
if (['EHOSTDOWN', 'ETIMEDOUT', 'EHOSTUNREACH'].includes(e.code)) {
let db = '';
if (timeoutErrorInfo.connection.filename) {
// for sqlite

Loading…
Cancel
Save