Skip to content

Commit

Permalink
Retry logic was broken, we were never retrying. (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
aboodman authored Feb 22, 2024
1 parent fd3adb8 commit 3e9b6d1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions backend/pg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,8 @@ export async function withExecutor<R>(
);
return result;
} catch (e) {
throw new Error(
// eslint-disable-next-line @typescript-eslint/no-explicit-any
`Error executing SQL: ${sql}: ${((e as unknown) as any).toString()}`
);
console.error("Error executing SQL", sql, e);
throw e;
}
};

Expand Down

0 comments on commit 3e9b6d1

Please sign in to comment.