Skip to content

Commit 31c36ef

Browse files
committedSep 19, 2020
(fix) exception message
1 parent 5a4f1e4 commit 31c36ef

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎src/main/java/io/github/cdimascio/dotenv/internal/DotenvReader.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
public class DotenvReader {
1414
private final String directory;
1515
private final String filename;
16+
1617
public DotenvReader(String directory, String filename) {
1718
this.directory = directory;
1819
this.filename = filename;
@@ -42,8 +43,8 @@ public List<String> read() throws DotenvException, IOException {
4243
.collect(Collectors.toList());
4344
} catch (DotenvException e) {
4445
var cwd = FileSystems.getDefault().getPath(".").toAbsolutePath().normalize();
45-
var cwdMessage = !path.isAbsolute() ? "(working directory: " +cwd+ ")" : "";
46-
e.addSuppressed(new DotenvException("Could not find $path on the file system " +cwdMessage));
46+
var cwdMessage = !path.isAbsolute() ? "(working directory: " + cwd + ")" : "";
47+
e.addSuppressed(new DotenvException("Could not find " + path + " on the file system " + cwdMessage));
4748
throw e;
4849
}
4950
}

0 commit comments

Comments
 (0)
Please sign in to comment.