浏览代码

print base64 encoded body if CRC does not match

jomo 9 年之前
父节点
当前提交
b0f50cbed0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      test/test.js

+ 1 - 1
test/test.js

@@ -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) {