diff --git a/step_check_cancellation.go b/step_check_cancellation.go index b153afbd..4ed86dea 100644 --- a/step_check_cancellation.go +++ b/step_check_cancellation.go @@ -28,7 +28,7 @@ func (s *stepCheckCancellation) Run(state multistep.StateBag) multistep.StepActi buildJob := state.Get("buildJob").(Job) if _, ok := state.GetOk("logWriter"); ok { logWriter := state.Get("logWriter").(LogWriter) - s.writeLogAndFinishWithState(ctx, logWriter, buildJob, FinishStateCancelled, fmt.Sprintf("\n\nDone: Job Cancelled\n\n%s", command.Reason)) + s.writeLogAndFinishWithState(ctx, logWriter, buildJob, FinishStateCancelled, fmt.Sprintf("\n\nDone: Job Cancelled\n%s\n", command.Reason)) } else { err := buildJob.Finish(ctx, FinishStateCancelled) if err != nil { diff --git a/step_run_script.go b/step_run_script.go index 640c5dbc..925bf16f 100644 --- a/step_run_script.go +++ b/step_run_script.go @@ -142,7 +142,7 @@ func (s *stepRunScript) Run(state multistep.StateBag) multistep.StepAction { Message: JobCancelledError.Error(), }) - s.writeLogAndFinishWithState(preTimeoutCtx, ctx, logWriter, buildJob, FinishStateCancelled, fmt.Sprintf("\n\nDone: Job Cancelled\n\n%s", cancelCommand.Reason)) + s.writeLogAndFinishWithState(preTimeoutCtx, ctx, logWriter, buildJob, FinishStateCancelled, fmt.Sprintf("\n\nDone: Job Cancelled\n%s\n", cancelCommand.Reason)) return multistep.ActionHalt case <-logWriter.Timeout():