'BSON serialise' errors are now thrown correctly
This commit is contained in:
1 parent
2cefd3b941
commit
e2376c7c71
1 file changed
+1
-1
@@ -29,7 +29,7 @@ const BSON = {
|
||||
const data = JSON.parse(input);
|
||||
return bson.serialize(data).buffer;
|
||||
} catch (err) {
|
||||
return err.toString();
|
||||
throw err.toString();
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in new issue
Block a user