Skip to content

Commit 31b1be9

Browse files
authored
quick fix to report failures from running the token-source. (#1132)
1 parent a38ff58 commit 31b1be9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/config/configuration.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,9 @@ func (c *Configuration) Resolve() error {
167167
if c.Registry.Token == "" && c.TokenSource != "" {
168168
shellArgs := strings.Split(c.TokenSource, " ")
169169
execCmd := exec.Command(shellArgs[0], shellArgs[1:]...)
170-
out, err := execCmd.Output()
170+
out, err := execCmd.CombinedOutput()
171171
if err != nil {
172-
return err
172+
return fmt.Errorf("error running token source: %s", string(out))
173173
}
174174
c.Registry.Token = strings.TrimSpace(string(out))
175175
}

0 commit comments

Comments
 (0)