(err error)
| 1267 | } |
| 1268 | |
| 1269 | func stepStatusForError(err error) Status { |
| 1270 | if errors.Is(err, context.Canceled) || errors.Is(err, context.DeadlineExceeded) { |
| 1271 | return StatusInterrupted |
| 1272 | } |
| 1273 | return StatusError |
| 1274 | } |
| 1275 | |
| 1276 | func normalizeError(ctx context.Context, err error) normalizedErrorPayload { |
| 1277 | payload := normalizedErrorPayload{} |