Skip to content

Commit e6d26af

Browse files
committed
fixed EVCSBranchNotFound throwing in getFileContent()
1 parent 51cfbd3 commit e6d26af

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
@@ -322,7 +322,7 @@ public String getFileContent(String branchName, String fileRelativePath, String
322322
InputStream in = loader.openStream();
323323
return IOUtils.toString(in, StandardCharsets.UTF_8);
324324

325-
} catch(EVCSFileNotFound e) {
325+
} catch(EVCSException e) {
326326
throw e;
327327
} catch (GitAPIException e) {
328328
throw new EVCSException(e);

0 commit comments

Comments
 (0)