Browse Source

fix openi inference error msg

pull/473/head
tzwang 6 months ago
parent
commit
42e936f5fc
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      internal/storeLink/openi.go

+ 2
- 2
internal/storeLink/openi.go View File

@@ -706,8 +706,8 @@ func (o OpenI) getTrainingTask(ctx context.Context, taskId string) (*model.TaskD
return nil, errors.New("failed to invoke taskDetails") return nil, errors.New("failed to invoke taskDetails")
} }


if resp.Data.Code != 0 {
return nil, errors.New(resp.Msg)
if resp.Data.Code != 0 && resp.Data.Msg != "" {
return nil, errors.New(resp.Data.Msg)
} }


return &resp.Data, nil return &resp.Data, nil


Loading…
Cancel
Save