Skip to content

Commit fa59d5a

Browse files
Enhance error message when file not found while using
1 parent 41222f2 commit fa59d5a

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.22-SNAPSHOT
3+
## 5.23-SNAPSHOT
4+
5+
## 5.22 (2025-03-25)
6+
- #### Changed
7+
- Enhance error message when file not found while using [ResourceUtils.java](src/main/java/io/jtest/utils/common/ResourceUtils.java)
48

59
## 5.21 (2024-09-26)
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
@@ -130,7 +130,7 @@ private static InputStream getInputStream(String filePath) throws IOException {
130130
InputStream is = !isAbsolute(filePath) ? Thread.currentThread().getContextClassLoader().getResourceAsStream(filePath)
131131
: Files.newInputStream(Paths.get(filePath));
132132
if (is == null) {
133-
throw new IOException("File " + filePath + " not found");
133+
throw new IOException("File " + filePath + " not found or directory might be empty");
134134
}
135135
return is;
136136
}

0 commit comments

Comments
 (0)