mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user