print base64 encoded body if CRC does not match

This commit is contained in:
jomo 2015-10-13 00:51:03 +02:00
parent 8b2ccf3368
commit b0f50cbed0

View File

@ -799,7 +799,7 @@ describe("Crafatar", function() {
try { try {
assert.ok(matches); assert.ok(matches);
} catch(e) { } 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); assert.strictEqual(res.headers.location, location.redirect);
if (location.etag === undefined) { if (location.etag === undefined) {