1
0
mirror of synced 2024-11-16 03:03:22 +01:00

'BSON serialise' errors are now thrown correctly

This commit is contained in:
n1474335 2018-04-30 17:55:21 +00:00
parent 2cefd3b941
commit e2376c7c71

View File

@ -29,7 +29,7 @@ const BSON = {
const data = JSON.parse(input);
return bson.serialize(data).buffer;
} catch (err) {
return err.toString();
throw err.toString();
}
},