Skip to content

Commit e18dae2

Browse files
Further enhance error message when file not found
1 parent a2699d0 commit e18dae2

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Changelog.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Changelog
22

3-
## 5.23-SNAPSHOT
3+
## 5.24-SNAPSHOT
4+
5+
## 5.23 (2025-03-26)
6+
- #### Changed
7+
- Further enhance error message when file not found while using [ResourceUtils.java](src/main/java/io/jtest/utils/common/ResourceUtils.java)
48

59
## 5.22 (2025-03-25)
610
- #### Changed

src/main/java/io/jtest/utils/common/ResourceUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ private static Path getPath(String filePath) throws IOException, URISyntaxExcept
114114
if (!isAbsolute(filePath)) {
115115
URL url = Thread.currentThread().getContextClassLoader().getResource(filePath);
116116
if (url == null) {
117-
throw new IOException("File " + filePath + " not found");
117+
throw new IOException("File " + filePath + " not found or directory might be empty");
118118
}
119119
path = Paths.get(url.toURI());
120120
} else {

0 commit comments

Comments
 (0)