Skip to content

Commit

Permalink
set correct error message
Browse files Browse the repository at this point in the history
  • Loading branch information
pvditt committed Dec 8, 2023
1 parent 639f83d commit 7060198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flyteplugins/go/tasks/plugins/array/core/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ func MapArrayStateToPluginPhase(_ context.Context, state *State, logLinks []*idl

case PhasePermanentFailure:
if state.GetExecutionErr() != nil {
phaseInfo = core.PhaseInfoFailureWithCleanup(core.PhasePermanentFailure.String(), state.GetReason(), nowTaskInfo)
phaseInfo = core.PhaseInfoFailureWithCleanup(core.PhasePermanentFailure.String(), state.GetExecutionErr().Message, nowTaskInfo)

Check warning on line 225 in flyteplugins/go/tasks/plugins/array/core/state.go

View check run for this annotation

Codecov / codecov/patch

flyteplugins/go/tasks/plugins/array/core/state.go#L225

Added line #L225 was not covered by tests
} else {
phaseInfo = core.PhaseInfoSystemFailureWithCleanup(ErrorK8sArrayGeneric, state.GetReason(), nowTaskInfo)
}
Expand Down

0 comments on commit 7060198

Please sign in to comment.