Cryptex icon indicating copy to clipboard operation
Cryptex copied to clipboard

Error from invalid JSON is silently ignored

Open sjungwirth opened this issue 8 years ago • 0 comments

https://github.com/TomFrost/Cryptex/blob/820187ec70fadf71814fa3dabd86c9aaa705f77a/src/index.js#L168-L172

What do you think about throwing a UserError here if e.name === "SyntaxError"?

sjungwirth avatar Oct 25 '17 00:10 sjungwirth