(current Status, err error)
| 1257 | } |
| 1258 | |
| 1259 | func streamErrorStatus(current Status, err error) Status { |
| 1260 | if current == StatusError { |
| 1261 | return current |
| 1262 | } |
| 1263 | if err == nil { |
| 1264 | return StatusError |
| 1265 | } |
| 1266 | return stepStatusForError(err) |
| 1267 | } |
| 1268 | |
| 1269 | func stepStatusForError(err error) Status { |
| 1270 | if errors.Is(err, context.Canceled) || errors.Is(err, context.DeadlineExceeded) { |