forked from JointCloud/pcm-coordinator
fix openi inference error msg
This commit is contained in:
parent
cbc4a679bc
commit
42e936f5fc
|
@ -706,8 +706,8 @@ func (o OpenI) getTrainingTask(ctx context.Context, taskId string) (*model.TaskD
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue