aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/migrate
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/(app)/migrate')
-rw-r--r--src/routes/(app)/migrate/+page.server.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/routes/(app)/migrate/+page.server.ts b/src/routes/(app)/migrate/+page.server.ts
index 48ae6a96..6559485f 100644
--- a/src/routes/(app)/migrate/+page.server.ts
+++ b/src/routes/(app)/migrate/+page.server.ts
@@ -81,8 +81,11 @@ export const actions = {
} catch (e) {
lastErr = e;
const msg = String((e as any)?.message || e);
- // only a shortfall is worth retrying smaller
- if (!/insufficient|balance|not enough|fee/i.test(msg)) throw e;
+ // only a shortfall is worth retrying smaller. The server's debit
+ // error is in the user's language ("Unzureichende Mittel ⚡️20582 /
+ // 20600"), so match its numeric tail rather than just the words.
+ if (!/insufficient|balance|not enough|fee|⚡\uFE0F?\s*\d+\s*(\/|of)\s*⚡?\uFE0F?\s*\d+/i.test(msg))
+ throw e;
}
}
if (!sent) throw lastErr;