Skip to content

Commit

Permalink
Update api/jobs/models/job_errors.go
Browse files Browse the repository at this point in the history
Co-authored-by: Fredrik Hatletvedt <[email protected]>
  • Loading branch information
satr and Pespiri authored Oct 17, 2023
1 parent 103f8b6 commit 84a2b64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/jobs/models/job_errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ func JobAlreadyRequestedToStopError(appName, jobName string) error {

// JobHasInvalidConditionToStopError Pipeline job cannot be stopped due to invalid condition
func JobHasInvalidConditionToStopError(appName, jobName string, jobCondition radixv1.RadixJobCondition) error {
return radixhttp.ValidationError("Radix Application Pipeline", fmt.Sprintf("only not Failed or Stopped pipeline jobs can be stopped, the job %s for the app %s has status %s", appName, jobName, jobCondition))
return radixhttp.ValidationError("Radix Application Pipeline", fmt.Sprintf("only pipeline jobs that doesn't have the status Failed or Stopped can be stopped, but the job %s for the app %s has status %s", appName, jobName, jobCondition))
}

0 comments on commit 84a2b64

Please sign in to comment.