From e307bb507bb748f48565dd87bd326e02ffb6f74f Mon Sep 17 00:00:00 2001 From: Baptiste Mathus Date: Thu, 14 Sep 2017 15:42:09 +0200 Subject: [PATCH] Chain the cause exception and log in case of failure --- .../jenkinsci/plugins/github_branch_source/GitHubSCMSource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource.java b/src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource.java index 9c092f840..5000461e2 100644 --- a/src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource.java +++ b/src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource.java @@ -1291,7 +1291,7 @@ private void checkApiUrlValidity(GitHub github) throws IOException { github.checkApiUrlValidity(); } catch (HttpException e) { String message = String.format("It seems %s is unreachable", apiUri == null ? GITHUB_URL : apiUri); - throw new AbortException(message); + throw new IOException(message, e); } }