mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-03-21 17:25:10 -05:00
Don't suppress replay db errors
A try-catch in Replays was too general.
This commit is contained in:
parent
eb60769cd3
commit
a36cb7e4e9
|
|
@ -109,7 +109,8 @@ export const Replays = new class {
|
|||
players: replayData.players,
|
||||
});
|
||||
}
|
||||
} catch {
|
||||
} catch (e: any) {
|
||||
if (e?.routine !== 'NewUniquenessConstraintViolationError') throw e;
|
||||
await replays.update(replay.id, {
|
||||
log: replayData.log,
|
||||
inputlog: replayData.inputlog,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user