(status *common.TSStatus)
| 255 | } |
| 256 | |
| 257 | func VerifySuccess(status *common.TSStatus) error { |
| 258 | if status.Code == RedirectionRecommend { |
| 259 | return nil |
| 260 | } |
| 261 | |
| 262 | if status.Code == MultipleError { |
| 263 | if err := verifySuccesses(status.GetSubStatus()); err != nil { |
| 264 | return err |
| 265 | } |
| 266 | return nil |
| 267 | } |
| 268 | if status.Code != SuccessStatus { |
| 269 | msg := "" |
| 270 | if status.Message != nil { |
| 271 | msg = *status.Message |
| 272 | } |
| 273 | return &ExecutionError{Code: status.Code, Message: msg} |
| 274 | } |
| 275 | return nil |
| 276 | } |
| 277 | |
| 278 | type Binary struct { |
| 279 | values []byte |
searching dependent graphs…