asmcrypto / asmcrypto.js

JavaScript Cryptographic Library with performance in mind.
MIT License
661 stars 182 forks source link

Suggestion: More context with the error message #176

Open laurinenas opened 4 years ago

laurinenas commented 4 years ago

Hey,

Firstly, I would like to express gratitude for the great library!

We rely on it a lot in our code and sometimes get a Wide characters are not allowed error, but then some time is spent locating which character has induced the error.

I believe it would be nice to get some more information about the error. For example:

Wide characters are not allowed. At the position 4963 this character was found: ’

I know this is a trivial change, but I hope it would make the library more user-friendly.

Best wishes,