X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=capifcore%2Finternal%2Fdiscoverservice%2Fdiscoverservice.go;h=511dbe0415dbb718d844db2928b5d5f67eee0727;hb=a421cac71a805f94c9093f945afedc083c0cf614;hp=4ab8a92c66fa0468285959e10725292875ef77fd;hpb=712247934a771ca533b0febcca4b2702225b17cb;p=nonrtric%2Fplt%2Fsme.git diff --git a/capifcore/internal/discoverservice/discoverservice.go b/capifcore/internal/discoverservice/discoverservice.go index 4ab8a92..511dbe0 100644 --- a/capifcore/internal/discoverservice/discoverservice.go +++ b/capifcore/internal/discoverservice/discoverservice.go @@ -21,6 +21,7 @@ package discoverservice import ( + "fmt" "net/http" "oransc.org/nonrtric/capifcore/internal/common29122" @@ -45,7 +46,7 @@ func NewDiscoverService(invokerRegister invokermanagement.InvokerRegister) *Disc func (ds *DiscoverService) GetAllServiceAPIs(ctx echo.Context, params discoverapi.GetAllServiceAPIsParams) error { allApis := ds.invokerRegister.GetInvokerApiList(params.ApiInvokerId) if allApis == nil { - return sendCoreError(ctx, http.StatusNotFound, "Invoker not registered") + return sendCoreError(ctx, http.StatusNotFound, fmt.Sprintf("Invoker %s not registered", params.ApiInvokerId)) } filteredApis := []publishapi.ServiceAPIDescription{} gatewayDomain := "r1-expo-func-aef"