Skip to content
This repository has been archived by the owner on Apr 13, 2021. It is now read-only.

Commit

Permalink
fix: extra error
Browse files Browse the repository at this point in the history
Signed-off-by: Carson Farmer <carson.farmer@gmail.com>
  • Loading branch information
carsonfarmer committed Oct 22, 2020
1 parent 6b04605 commit d0008f6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/remote/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,11 @@ export class Remote {
await trans.end();
} catch (err) {
// In theory, err will be due to remote transaction calls... abort!
await trans.discard();
try {
await trans.discard();
} catch (err) {
// Nothing more we can do here
}
throw err; // Rethrow for external consumers
}
// TODO: Maybe return updated hash of head update.
Expand Down

0 comments on commit d0008f6

Please sign in to comment.