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