Skip to content

Commit

Permalink
chore: Surface parse duration error in operator (argoproj#5814)
Browse files Browse the repository at this point in the history
Signed-off-by: terrytangyuan <[email protected]>
  • Loading branch information
terrytangyuan committed May 4, 2021
1 parent a65cc3e commit 3f80866
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/controller/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -2798,7 +2798,7 @@ func parseStringToDuration(durationString string) (time.Duration, error) {
} else if duration, err := time.ParseDuration(durationString); err == nil {
suspendDuration = duration
} else {
return 0, fmt.Errorf("unable to parse %s as a duration", durationString)
return 0, fmt.Errorf("unable to parse %s as a duration: %w", durationString, err)
}
return suspendDuration, nil
}
Expand Down

0 comments on commit 3f80866

Please sign in to comment.