mirror of
https://github.com/azures04/crafatar.git
synced 2026-05-06 11:00:39 +02:00
print base64 encoded body if CRC does not match
This commit is contained in:
@@ -799,7 +799,7 @@ describe("Crafatar", function() {
|
||||
try {
|
||||
assert.ok(matches);
|
||||
} catch(e) {
|
||||
throw new Error(crc(body) + " != " + location.crc32);
|
||||
throw new Error(crc(body) + " != " + location.crc32 + " | " + body.toString("base64"));
|
||||
}
|
||||
assert.strictEqual(res.headers.location, location.redirect);
|
||||
if (location.etag === undefined) {
|
||||
|
||||
Reference in New Issue
Block a user