keis / base58

Base58 and Base58Check implementation compatible with what is used by the bitcoin network.
MIT License
180 stars 59 forks source link

Escape illegal special characters in error message #66

Closed hukkin closed 3 years ago

hukkin commented 3 years ago

Consider e.g. the illegal backspace char \u0008 in an error message. Previously we'd get:

"Invalid character >"

with this PR we get

"Invalid character '\x08'"
keis commented 3 years ago

LGTM! Thanks for the PR