We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a38ff58 commit 31b1be9Copy full SHA for 31b1be9
pkg/config/configuration.go
@@ -167,9 +167,9 @@ func (c *Configuration) Resolve() error {
167
if c.Registry.Token == "" && c.TokenSource != "" {
168
shellArgs := strings.Split(c.TokenSource, " ")
169
execCmd := exec.Command(shellArgs[0], shellArgs[1:]...)
170
- out, err := execCmd.Output()
+ out, err := execCmd.CombinedOutput()
171
if err != nil {
172
- return err
+ return fmt.Errorf("error running token source: %s", string(out))
173
}
174
c.Registry.Token = strings.TrimSpace(string(out))
175
0 commit comments