Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1833,7 +1833,10 @@ public void execute() throws GitException, InterruptedException { | |
if (Pattern.compile("index\\.lock").matcher(e.getMessage()).find()) { | ||
throw new GitLockFailedException("Could not lock repository. Please try again", e); | ||
} else { | ||
throw new GitException("Could not checkout " + branch + " with start point " + ref, e); | ||
if (branch != null) | ||
throw new GitException("Could not checkout " + branch + " with start point " + ref, e); | ||
else | ||
throw new GitException("Could not checkout " + ref, e); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
ndeloof
Author
Contributor
|
||
} | ||
} catch (InterruptedException e) { | ||
final File indexFile = new File(workspace.getPath() + File.separator | ||
|
Would it help the diagnosis if the GitException message included the message from the causing exception, as in
throw new GitException("Could not checkout " + ref + ", " + e.getMessage(), e);
?Or should some upper level method already be peeking "inside" the exception and displaying more information if there is a causing exception?