forked from JointCloud/pcm-coordinator
modify rpc errs
This commit is contained in:
parent
b54df06312
commit
1f99caf6a6
|
@ -680,7 +680,7 @@ func (s *ShuguangAi) generateImageId(ctx context.Context, option *option.AiOptio
|
|||
}
|
||||
resp, err := s.aCRpc.GetImageListAi(ctx, req)
|
||||
if err != nil {
|
||||
return err
|
||||
return errors.New("generateImageId / GetImageListAi: " + err.Error())
|
||||
}
|
||||
if resp.Code != "0" {
|
||||
return errors.New("failed to get imageId")
|
||||
|
@ -706,7 +706,8 @@ func (s *ShuguangAi) generateAlgorithmId(ctx context.Context, option *option.AiO
|
|||
req := &hpcAC.GetFileListReq{Limit: 100, Path: ALGORITHM_DIR + FORWARD_SLASH + option.TaskType, Start: 0}
|
||||
list, err := s.aCRpc.GetFileList(ctx, req)
|
||||
if err != nil {
|
||||
return err
|
||||
return errors.New("generateAlgorithmId / GetFileListReq: " + err.Error())
|
||||
|
||||
}
|
||||
if list.Code != "0" {
|
||||
return errors.New(list.Msg)
|
||||
|
|
Loading…
Reference in New Issue