Browse Source

'BSON serialise' errors are now thrown correctly

n1474335 7 years ago
parent
commit
e2376c7c71
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core/operations/BSON.js

+ 1 - 1
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();
         }
     },