-
Type:
Improvement
-
Resolution: Fixed
-
Priority:
Major
-
Component/s: git-client-plugin
When there is an exception happening in CliGitAPIImpl#getURLWithCrendentials -method, the error message does not contain the root cause why the connection to git server is failing.
throw new GitException("Failed to connect to " + u.toString() + (cred != null ? " using credentials " + cred.getDescription() : ""));
To this
throw new GitException("Failed to connect to " + u.toString() + (cred != null ? " using credentials " + cred.getDescription() : ""), e);
This extra information could help people to figure out why they are having problems on cloning the repository