Skip to content

Commit

Permalink
Merge pull request #619 from runatlantis/double-error
Browse files Browse the repository at this point in the history
Don't include errored cmd output twice.
  • Loading branch information
lkysow authored May 7, 2019
2 parents c1c01ea + e45bc33 commit 3160a82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/events/runtime/run_step_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (r *RunStepRunner) Run(ctx models.ProjectCommandContext, command string, pa
if err != nil {
err = fmt.Errorf("%s: running %q in %q: \n%s", err, command, path, out)
ctx.Log.Debug("error: %s", err)
return string(out), err
return "", err
}
ctx.Log.Info("successfully ran %q in %q", command, path)
return string(out), nil
Expand Down

0 comments on commit 3160a82

Please sign in to comment.