Skip to content

Commit b6cd2fb

Browse files
committed
日志中会包含具体版本号信息
1 parent e1b606a commit b6cd2fb

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/main/java/com/github/balloonupdate/mcpatch/client/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ static Map<String, Object> readConfig(Path external) throws McpatchBusinessExcep
332332
else {
333333
// 开发时必须要有外部配置文件
334334
if (Env.isDevelopment()) {
335-
throw new McpatchBusinessException("找不到配置文件: mcpatch.yml,开发时必须要有配置文件");
335+
throw new McpatchBusinessException("找不到配置文件: mcpatch.yml,开发时必须要有配置文件 " + external);
336336
}
337337

338338
// 读取内部配置文件

src/main/java/com/github/balloonupdate/mcpatch/client/Work.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,8 @@ boolean run2(Servers server) throws IOException, McpatchBusinessException {
429429
for (TempUpdateFile f : updateFiles) {
430430
String filename = PathUtility.getFilename(f.path);
431431

432+
Log.openIndent(f.label);
433+
432434
Log.debug(" a.开始下载 " + f.path);
433435
Log.debug(" Download " + f.tempPath);
434436

@@ -494,6 +496,8 @@ boolean run2(Servers server) throws IOException, McpatchBusinessException {
494496

495497
if (!hash.equals(f.hash))
496498
throw new McpatchBusinessException(String.format("临时文件校验失败,预期 %s,实际 %s,文件路径 %s", f.hash, hash, f.tempPath.toFile().getAbsolutePath()));
499+
500+
Log.closeIndent();
497501
}
498502

499503
if (window != null)

0 commit comments

Comments
 (0)