From 96974851dab0708a3cb8890779746f587f841cb1 Mon Sep 17 00:00:00 2001 From: Alex Wilcox Date: Fri, 16 Jun 2023 17:35:13 +0000 Subject: [PATCH] Return 404 when item cannot be found --- msgraph/accesspackageresourcerolescope.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msgraph/accesspackageresourcerolescope.go b/msgraph/accesspackageresourcerolescope.go index ca4435fd..068c0197 100644 --- a/msgraph/accesspackageresourcerolescope.go +++ b/msgraph/accesspackageresourcerolescope.go @@ -148,7 +148,7 @@ func (c *AccessPackageResourceRoleScopeClient) Get(ctx context.Context, accessPa } if accessPackageResourceRoleScope.ID == nil { - return nil, status, fmt.Errorf("AccessPackageResourceRoleScopeClient.BaseClient.Get(): Could not find accessPackageResourceRoleScope ID") + return nil, http.StatusNotFound, fmt.Errorf("AccessPackageResourceRoleScopeClient.BaseClient.Get(): Could not find accessPackageResourceRoleScope ID %s", id) } return &accessPackageResourceRoleScope, status, nil