From d0008f6182f5406a7ca9388b7c00bab2b3f09344 Mon Sep 17 00:00:00 2001 From: Carson Farmer Date: Thu, 22 Oct 2020 16:53:16 -0700 Subject: [PATCH] fix: extra error Signed-off-by: Carson Farmer --- src/remote/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/remote/index.ts b/src/remote/index.ts index c1fbaa8..80f72ac 100644 --- a/src/remote/index.ts +++ b/src/remote/index.ts @@ -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.