mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 05:19:39 +02:00
feat(edge/stacks): increase status transparency [EE-5554] (#9094)
This commit is contained in:
parent
db61fb149b
commit
0bcb57568c
45 changed files with 1305 additions and 316 deletions
|
@ -3,6 +3,7 @@ package composeplugin
|
|||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
"os/exec"
|
||||
"strings"
|
||||
|
@ -160,7 +161,11 @@ func (wrapper *PluginWrapper) command(command composeCommand, options libstack.O
|
|||
Err(err).
|
||||
Msg("docker compose command failed")
|
||||
|
||||
return nil, errors.New(errOutput)
|
||||
if errOutput != "" {
|
||||
return nil, errors.New(errOutput)
|
||||
}
|
||||
|
||||
return nil, fmt.Errorf("docker compose command failed: %w", err)
|
||||
}
|
||||
|
||||
return output, nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue