diff --git a/internal/http/services/ocmd/shares.go b/internal/http/services/ocmd/shares.go index d4435d3b08..10e9c852c0 100644 --- a/internal/http/services/ocmd/shares.go +++ b/internal/http/services/ocmd/shares.go @@ -101,11 +101,13 @@ func (h *sharesHandler) createShare(w http.ResponseWriter, r *http.Request) { } if resource == "" || providerID == "" || owner == "" { - WriteError(w, r, APIErrorInvalidParameter, "missing details about resource to be shared", nil) + msg := fmt.Sprintf("missing details about resource to be shared (resource='%s', providerID='%s', owner='%s", resource, providerID, owner) + WriteError(w, r, APIErrorInvalidParameter, msg, nil) return } if shareWith == "" || protocol["name"] == "" || meshProvider == "" { - WriteError(w, r, APIErrorInvalidParameter, "missing request parameters", nil) + msg := fmt.Sprintf("missing request parameters (shareWith='%s', protocol.name='%s', meshProvider='%s'", shareWith, protocol["name"], meshProvider) + WriteError(w, r, APIErrorInvalidParameter, msg, nil) return }