From a237a31d231d6f4193555e81e71b80f48a1fbb57 Mon Sep 17 00:00:00 2001 From: Glavo Date: Mon, 24 Jan 2022 12:22:43 +0800 Subject: [PATCH] Output the URL in the log when the file is not found --- HMCLCore/src/main/java/org/jackhuang/hmcl/task/FetchTask.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HMCLCore/src/main/java/org/jackhuang/hmcl/task/FetchTask.java b/HMCLCore/src/main/java/org/jackhuang/hmcl/task/FetchTask.java index c7a07c98a..c4dea72ca 100644 --- a/HMCLCore/src/main/java/org/jackhuang/hmcl/task/FetchTask.java +++ b/HMCLCore/src/main/java/org/jackhuang/hmcl/task/FetchTask.java @@ -121,7 +121,7 @@ public abstract class FetchTask extends Task { continue; } } else if (responseCode / 100 == 4) { - throw new FileNotFoundException(); + throw new FileNotFoundException(url.toString()); } else if (responseCode / 100 != 2) { throw new ResponseCodeException(url, responseCode); }