[git] Write the exception to the log

Otherwise only the exception message is shown in the UI
without stack trace.
This commit is contained in:
Kirill Likhodedov
2013-03-30 16:58:38 +04:00
parent 722bc4021f
commit e5d315d90c
@@ -126,6 +126,7 @@ public class GitAnnotationProvider implements AnnotationProvider, VcsCacheableAn
command.run();
}
if (exception[0] != null) {
LOG.warn(exception[0]);
throw new VcsException("Failed to annotate: " + exception[0], exception[0]);
}
return annotation[0];
@@ -172,7 +173,8 @@ public class GitAnnotationProvider implements AnnotationProvider, VcsCacheableAn
commitHash = null;
}
s.spaceToken(); // skip revision line number
int lineNum = Integer.parseInt(s.spaceToken());
String s1 = s.spaceToken();
int lineNum = Integer.parseInt(s1);
s.nextLine();
// parse commit information
CommitInfo commit = commits.get(commitHash);