Skip to content

Commit

Permalink
fixed small bug in cli client
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernhard B committed Oct 5, 2023
1 parent bc74d4c commit 8271d53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,14 @@ func (s *CliClient) Execute(wait bool, args []string, stdin string) (string, err
return "", errors.New("process killed as timeout reached")
case err := <-done:
if err != nil {
combinedOutput := stdoutBuffer.String() + " " + stderrBuffer.String()
combinedOutput := stdoutBuffer.String() + stderrBuffer.String()
log.Debug("signal-cli output (stdout): ", stdoutBuffer.String())
log.Debug("signal-cli output (stderr): ", stderrBuffer.String())
return "", errors.New(combinedOutput)
}
}

combinedOutput := stdoutBuffer.String() + " " + stderrBuffer.String()
combinedOutput := stdoutBuffer.String() + stderrBuffer.String()
log.Debug("signal-cli output (stdout): ", stdoutBuffer.String())
log.Debug("signal-cli output (stderr): ", stderrBuffer.String())
return combinedOutput, nil
Expand Down

0 comments on commit 8271d53

Please sign in to comment.