Explorar o código

'BSON serialise' errors are now thrown correctly

n1474335 %!s(int64=7) %!d(string=hai) anos
pai
achega
e2376c7c71
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();
         }
     },