Skip to content

Commit

Permalink
Merge pull request #159 from batmat/more-diagnostics-when-no-url-vali…
Browse files Browse the repository at this point in the history
…dity

Chain the cause exception and log in case of failure
  • Loading branch information
stephenc authored Dec 18, 2017
2 parents 08b3d32 + e307bb5 commit e8c6c77
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit e8c6c77

Please sign in to comment.