提交 a69f9f3b authored 作者: Thomas Mueller's avatar Thomas Mueller

Improved error message.

上级 8821eaa8
......@@ -557,7 +557,8 @@ public class BuildBase {
println("SHA1 checksum: " + got);
} else {
if (!got.equals(sha1Checksum)) {
throw new RuntimeException("SHA1 checksum mismatch; got: " + got);
throw new RuntimeException("SHA1 checksum mismatch; got: " +
got + " expected: " + sha1Checksum + " for file " + f.getAbsolutePath());
}
}
writeFile(targetFile, data);
......@@ -613,7 +614,9 @@ public class BuildBase {
println("SHA1 checksum: " + got);
} else {
if (!got.equals(sha1Checksum)) {
throw new RuntimeException("SHA1 checksum mismatch; got: " + got);
throw new RuntimeException("SHA1 checksum mismatch; got: " +
got + " expected: " + sha1Checksum + " for file " + target);
}
}
writeFile(targetFile, data);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论