Adjust + Test

This commit is contained in:
mr
2026-02-18 12:24:19 +01:00
parent 842e09f22f
commit fa5c3a3c60
45 changed files with 1166 additions and 1192 deletions

View File

@@ -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