Wouldn't it be more appropriate to throw an exception? #2492
leeguooooo
started this conversation in
Proposals
Replies: 1 comment
-
Since Remix should be the one writing/encoding the cookie, the decode should never fail. It should only fail if somebody has tampered with the cookie. So instead of throwing an error, it simply ignores the invalid cookie and returns an empty object. I believe there was an error with the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Wouldn't it be more appropriate to throw an exception?
Wouldn't it be more appropriate to throw an exception or print it to the console?
It took me a long time to find the reason for this because of a bug.
Error in JSON.parse().
Beta Was this translation helpful? Give feedback.
All reactions