From e2376c7c717e947dbf5bb197812092488c206221 Mon Sep 17 00:00:00 2001 From: n1474335 Date: Mon, 30 Apr 2018 17:55:21 +0000 Subject: [PATCH] 'BSON serialise' errors are now thrown correctly --- src/core/operations/BSON.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/operations/BSON.js b/src/core/operations/BSON.js index 52ee98bc..4f0d484f 100644 --- a/src/core/operations/BSON.js +++ b/src/core/operations/BSON.js @@ -29,7 +29,7 @@ const BSON = { const data = JSON.parse(input); return bson.serialize(data).buffer; } catch (err) { - return err.toString(); + throw err.toString(); } },