diff --git a/maven-scm-providers/maven-scm-provider-jazz/src/main/java/org/apache/maven/scm/provider/jazz/command/checkin/JazzCheckInCommand.java b/maven-scm-providers/maven-scm-provider-jazz/src/main/java/org/apache/maven/scm/provider/jazz/command/checkin/JazzCheckInCommand.java index 7c34b7c95..fddf19606 100644 --- a/maven-scm-providers/maven-scm-provider-jazz/src/main/java/org/apache/maven/scm/provider/jazz/command/checkin/JazzCheckInCommand.java +++ b/maven-scm-providers/maven-scm-provider-jazz/src/main/java/org/apache/maven/scm/provider/jazz/command/checkin/JazzCheckInCommand.java @@ -142,7 +142,7 @@ protected CheckInScmResult executeCheckInCommand( ScmProviderRepository reposito errConsumer = new ErrorConsumer( getLogger() ); status = changesetAssociateCmd.execute( outputConsumer, errConsumer ); - if ( status != 0 || errConsumer.hasBeenFed() ) + if ( status != 0 ) { return new CheckInScmResult( changesetAssociateCmd.getCommandString(), "Error code for Jazz SCM changeset associate command - " + status, diff --git a/maven-scm-providers/maven-scm-provider-jazz/src/test/java/org/apache/maven/scm/provider/jazz/command/status/JazzStatusCommandTest.java b/maven-scm-providers/maven-scm-provider-jazz/src/test/java/org/apache/maven/scm/provider/jazz/command/status/JazzStatusCommandTest.java index 41d612c45..0bd8de437 100644 --- a/maven-scm-providers/maven-scm-provider-jazz/src/test/java/org/apache/maven/scm/provider/jazz/command/status/JazzStatusCommandTest.java +++ b/maven-scm-providers/maven-scm-provider-jazz/src/test/java/org/apache/maven/scm/provider/jazz/command/status/JazzStatusCommandTest.java @@ -514,4 +514,14 @@ public void testServerUnreachable2() statusConsumer.consumeLine( " administrator." ); } + + public void testServerUnreachable3() + { + statusConsumer.consumeLine( "Workspace: (----) \"Chris-Project-XXXXXX-Workspace\" (This workspace is unreachable.)" ); + statusConsumer.consumeLine( " Could not determine the URI required to connect to the repository. The UUID of" ); + statusConsumer.consumeLine( " the repository is _ZdjnafkjnEmkEW5-4HuDag. If you know the repository URI run" ); + statusConsumer.consumeLine( " 'login' command providing the repository URI. If not, please contact your" ); + statusConsumer.consumeLine( " administrator." ); + + } }