forked from lix-project/lix
Compare commits
1 commit
main
...
sideport-g
Author | SHA1 | Date | |
---|---|---|---|
2c095fa5a6 |
|
@ -182,7 +182,7 @@ std::string base64Decode(std::string_view s)
|
||||||
|
|
||||||
char digit = base64DecodeChars[(unsigned char) c];
|
char digit = base64DecodeChars[(unsigned char) c];
|
||||||
if (digit == npos)
|
if (digit == npos)
|
||||||
throw Error("invalid character in Base64 string: '%c'", c);
|
throw Error("invalid character in Base64 string: '%c' in '%s'", c, s.data());
|
||||||
|
|
||||||
bits += 6;
|
bits += 6;
|
||||||
d = d << 6 | digit;
|
d = d << 6 | digit;
|
||||||
|
|
Loading…
Reference in a new issue