Commit b7b629a
committed
fix(auth): guard backup assessment against Windows EPERM/EBUSY
Wrap getActionableNamedBackupRestores in try-catch so a filesystem
error (e.g. antivirus holding a backup file on Windows) skips the
recovery prompt instead of crashing the login flow.
Switch Promise.all to Promise.allSettled in getActionableNamedBackupRestores
so one unreadable backup file does not block assessment of the rest.1 parent 36a0a37 commit b7b629a
2 files changed
Lines changed: 21 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4373 | 4373 | | |
4374 | 4374 | | |
4375 | 4375 | | |
4376 | | - | |
4377 | | - | |
4378 | | - | |
| 4376 | + | |
| 4377 | + | |
| 4378 | + | |
| 4379 | + | |
| 4380 | + | |
| 4381 | + | |
| 4382 | + | |
| 4383 | + | |
| 4384 | + | |
| 4385 | + | |
| 4386 | + | |
4379 | 4387 | | |
4380 | 4388 | | |
4381 | 4389 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1334 | 1334 | | |
1335 | 1335 | | |
1336 | 1336 | | |
1337 | | - | |
| 1337 | + | |
1338 | 1338 | | |
1339 | 1339 | | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
1340 | 1349 | | |
1341 | 1350 | | |
1342 | 1351 | | |
| |||
0 commit comments