This avoids we show a stacktrace on the console by default when this
type of exception is thrown during the run method is executed.
Change-Id: If8be68621c7135435cd067ef638460b175786b1b
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
/** {@inheritDoc} */
@Override
- protected void run() throws Exception {
+ protected void run() {
try (Git git = new Git(db)) {
FetchCommand fetch = git.fetch();
if (fsck != null)
return;
showFetchResult(result);
- } catch (GitAPIException e) {
+ } catch (GitAPIException | IOException e) {
throw die(e.getMessage(), e);
}
}