Skip to content

Commit 0b2a779

Browse files
author
Vladimir Kotal
committed
rethrow the exception if failed to get history
1 parent df91974 commit 0b2a779

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/history/GitRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ History getHistory(File file, String sinceRevision) throws HistoryException {
581581
entries.add(historyEntry);
582582
}
583583
} catch (IOException | ForbiddenSymlinkException e) {
584-
LOGGER.log(Level.WARNING, String.format("failed to get history for ''%s''", file), e);
584+
throw new HistoryException(String.format("failed to get history for ''%s''", file), e);
585585
}
586586

587587
History result = new History(entries, renamedFiles);

0 commit comments

Comments
 (0)