Skip to content

Commit

Permalink
Return 404 when item cannot be found
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwilcox9 committed Jun 16, 2023
1 parent 6056da0 commit 9697485
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion msgraph/accesspackageresourcerolescope.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9697485

Please sign in to comment.