Skip to content

Commit 82617c9

Browse files
committed
EVCSFileNotFound throwing updated
1 parent c2a52c7 commit 82617c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/scm4j/vcs/GitVCS.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ public String getFileContent(String branchName, String fileRelativePath, String
306306
treeWalk.setRecursive(true);
307307
treeWalk.setFilter(PathFilter.create(fileRelativePath));
308308
if (!treeWalk.next()) {
309-
throw new EVCSFileNotFound(String.format("File %s is not found", fileRelativePath));
309+
throw new EVCSFileNotFound(getRepoUrl(), getRealBranchName(branchName), revision, fileRelativePath);
310310
}
311311
ObjectId objectId = treeWalk.getObjectId(0);
312312

0 commit comments

Comments
 (0)