diff --git a/packages/nocodb/src/lib/version-upgrader/ncAttachmentUpgrader.ts b/packages/nocodb/src/lib/version-upgrader/ncAttachmentUpgrader.ts index e835ed9606..f5c1393b3a 100644 --- a/packages/nocodb/src/lib/version-upgrader/ncAttachmentUpgrader.ts +++ b/packages/nocodb/src/lib/version-upgrader/ncAttachmentUpgrader.ts @@ -175,11 +175,11 @@ export default async function ({ ncMeta }: NcUpgraderCtx) { } await Promise.all(updateRecords); } catch (e) { - // throw the custom timeout error message if applicable - throwTimeoutError(e, timeoutErrorInfo); - // ignore the error related to deleted project if (!isProjectDeleted) { + // throw the custom timeout error message if applicable + throwTimeoutError(e, timeoutErrorInfo); + // throw general error throw e; } } diff --git a/packages/nocodb/src/lib/version-upgrader/ncAttachmentUpgrader_0104002.ts b/packages/nocodb/src/lib/version-upgrader/ncAttachmentUpgrader_0104002.ts index 7843329cdf..cb47f72122 100644 --- a/packages/nocodb/src/lib/version-upgrader/ncAttachmentUpgrader_0104002.ts +++ b/packages/nocodb/src/lib/version-upgrader/ncAttachmentUpgrader_0104002.ts @@ -156,11 +156,11 @@ export default async function ({ ncMeta }: NcUpgraderCtx) { } await Promise.all(updateRecords); } catch (e) { - // throw the custom timeout error message if applicable - throwTimeoutError(e, timeoutErrorInfo); - // ignore the error related to deleted project if (!isProjectDeleted) { + // throw the custom timeout error message if applicable + throwTimeoutError(e, timeoutErrorInfo); + // throw general error throw e; } }