mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-22 07:46:16 -04:00
'BSON serialise' errors are now thrown correctly
This commit is contained in:
parent
2cefd3b941
commit
e2376c7c71
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ const BSON = {
|
||||||
const data = JSON.parse(input);
|
const data = JSON.parse(input);
|
||||||
return bson.serialize(data).buffer;
|
return bson.serialize(data).buffer;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
return err.toString();
|
throw err.toString();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue