diff --git a/src/integTest/groovy/org/shipkit/gh/release/GithubReleasePluginIntegTest.groovy b/src/integTest/groovy/org/shipkit/gh/release/GithubReleasePluginIntegTest.groovy index b4fcc3f..c991054 100644 --- a/src/integTest/groovy/org/shipkit/gh/release/GithubReleasePluginIntegTest.groovy +++ b/src/integTest/groovy/org/shipkit/gh/release/GithubReleasePluginIntegTest.groovy @@ -86,11 +86,13 @@ class GithubReleasePluginIntegTest extends BaseSpecification { then: //fails because we don't have the credentials result.output.contains """Unable to post release to Github. - - url: https://api.github.com/repos/shipkit/shipkit-changelog/releases - - release tag: v1.2.3 - - release name: v1.2.3 - - token: sec... - - content: - Spanking new release!""" + * url: https://api.github.com/repos/shipkit/shipkit-changelog/releases + * release tag: v1.2.3 + * release name: v1.2.3 + * token: sec... + * content: +Spanking new release! + + * underlying problem:""" } } diff --git a/src/main/java/org/shipkit/gh/release/GithubReleaseTask.java b/src/main/java/org/shipkit/gh/release/GithubReleaseTask.java index 8ffe594..6806073 100644 --- a/src/main/java/org/shipkit/gh/release/GithubReleaseTask.java +++ b/src/main/java/org/shipkit/gh/release/GithubReleaseTask.java @@ -141,11 +141,14 @@ public void setNewTagRevision(String newTagRevision) { LOG.lifecycle("Posted release to Github: " + htmlUrl); } catch (IOException e) { throw new GradleException("Unable to post release to Github.\n" + - " - url: " + url + "\n" + - " - release tag: " + releaseTag + "\n" + - " - release name: " + releaseName + "\n" + - " - token: " + githubToken.substring(0, 3) + "...\n" + - " - content:\n" + releaseNotesTxt + "\n" + " * url: " + url + "\n" + + " * release tag: " + releaseTag + "\n" + + " * release name: " + releaseName + "\n" + + " * token: " + githubToken.substring(0, 3) + "...\n" + + " * content:\n" + releaseNotesTxt + "\n\n" + + " * underlying problem: " + e.getMessage() + "\n" + + " * troubleshooting: please run Gradle with '-s' to see the full stack trace or inspect the build scan\n" + + " * thank you for using Shipkit!" , e); } }