mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-12-21 15:59:48 +01:00
Show messages from native scm protocol
This commit is contained in:
@@ -59,6 +59,7 @@ import static java.util.Optional.of;
|
||||
import static sonia.scm.ContextEntry.ContextBuilder.entity;
|
||||
import static sonia.scm.NotFoundException.notFound;
|
||||
import static sonia.scm.repository.GitUtil.getBranchIdOrCurrentHead;
|
||||
import static sonia.scm.repository.spi.IntegrateChangesFromWorkdirException.forMessage;
|
||||
|
||||
//~--- JDK imports ------------------------------------------------------------
|
||||
|
||||
@@ -255,7 +256,7 @@ class AbstractGitCommand {
|
||||
.findAny()
|
||||
.ifPresent(remoteRefUpdate -> {
|
||||
logger.info("message for failed push: {}", pushResult.getMessages());
|
||||
throw new IntegrateChangesFromWorkdirException(repository, "could not push changes into central repository: " + remoteRefUpdate.getStatus());
|
||||
throw forMessage(repository, pushResult.getMessages());
|
||||
});
|
||||
} catch (GitAPIException e) {
|
||||
throw new InternalRepositoryException(repository, "could not push changes into central repository", e);
|
||||
|
||||
Reference in New Issue
Block a user