Adjust + Test
This commit is contained in:
@@ -649,7 +649,7 @@ func LoadOneStorage(storageId string, user string, peerID string, groups []strin
|
||||
if res.Code != 200 {
|
||||
l := GetLogger()
|
||||
l.Error().Msg("Error while loading storage ressource " + storageId)
|
||||
return nil, fmt.Errorf(res.Err)
|
||||
return nil, errors.New(res.Err)
|
||||
}
|
||||
|
||||
return res.ToStorageResource(), nil
|
||||
@@ -661,7 +661,7 @@ func LoadOneComputing(computingId string, user string, peerID string, groups []s
|
||||
if res.Code != 200 {
|
||||
l := GetLogger()
|
||||
l.Error().Msg("Error while loading computing ressource " + computingId)
|
||||
return nil, fmt.Errorf(res.Err)
|
||||
return nil, errors.New(res.Err)
|
||||
}
|
||||
|
||||
return res.ToComputeResource(), nil
|
||||
@@ -673,7 +673,7 @@ func LoadOneProcessing(processingId string, user string, peerID string, groups [
|
||||
if res.Code != 200 {
|
||||
l := GetLogger()
|
||||
l.Error().Msg("Error while loading processing ressource " + processingId)
|
||||
return nil, fmt.Errorf(res.Err)
|
||||
return nil, errors.New(res.Err)
|
||||
}
|
||||
|
||||
return res.ToProcessingResource(), nil
|
||||
@@ -685,7 +685,7 @@ func LoadOneData(dataId string, user string, peerID string, groups []string) (*r
|
||||
if res.Code != 200 {
|
||||
l := GetLogger()
|
||||
l.Error().Msg("Error while loading data ressource " + dataId)
|
||||
return nil, fmt.Errorf(res.Err)
|
||||
return nil, errors.New(res.Err)
|
||||
}
|
||||
return res.ToDataResource(), nil
|
||||
|
||||
|
||||
Reference in New Issue
Block a user