You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2018/07/02 23:43:32 UTC

commons-release-plugin git commit: Better error message.

Repository: commons-release-plugin
Updated Branches:
  refs/heads/master 5679e7914 -> 225e6f1be


Better error message.

Project: http://git-wip-us.apache.org/repos/asf/commons-release-plugin/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-release-plugin/commit/225e6f1b
Tree: http://git-wip-us.apache.org/repos/asf/commons-release-plugin/tree/225e6f1b
Diff: http://git-wip-us.apache.org/repos/asf/commons-release-plugin/diff/225e6f1b

Branch: refs/heads/master
Commit: 225e6f1be73ea3695680a21dbb8b85b24bcba4cb
Parents: 5679e79
Author: Gary Gregory <ga...@gmail.com>
Authored: Mon Jul 2 19:43:29 2018 -0400
Committer: Gary Gregory <ga...@gmail.com>
Committed: Mon Jul 2 19:43:29 2018 -0400

----------------------------------------------------------------------
 .../release/plugin/mojos/CommonsDistributionStagingMojo.java      | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-release-plugin/blob/225e6f1b/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionStagingMojo.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionStagingMojo.java b/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionStagingMojo.java
index 6d21497..b701d4a 100755
--- a/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionStagingMojo.java
+++ b/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionStagingMojo.java
@@ -204,7 +204,8 @@ public class CommonsDistributionStagingMojo extends AbstractMojo {
                         fileSet
                 );
                 if (!addResult.isSuccess()) {
-                    throw new MojoExecutionException("Failed to add files to scm");
+                    throw new MojoExecutionException("Failed to add files to scm: " + addResult.getProviderMessage()
+                            + " [" + addResult.getCommandOutput() + "]");
                 }
                 getLog().info("Staging release: " + project.getArtifactId() + ", version: " + project.getVersion());
                 CheckInScmResult checkInResult = provider.checkIn(