diff --git a/pkg/cmd/project/item-list/item_list.go b/pkg/cmd/project/item-list/item_list.go index 6d79ed2f1..1ff4c55ed 100644 --- a/pkg/cmd/project/item-list/item_list.go +++ b/pkg/cmd/project/item-list/item_list.go @@ -114,7 +114,7 @@ func runList(config listConfig) error { return err } if !features.ProjectItemQuery { - return fmt.Errorf("the `--query` flag is not supported on this GitHub host; most likely you are targeting a version of GHES that does not yet have the query field available") + return fmt.Errorf("the `--query` flag is not supported on this GitHub host") } } diff --git a/pkg/cmd/project/item-list/item_list_test.go b/pkg/cmd/project/item-list/item_list_test.go index c5143bfb6..a9df42026 100644 --- a/pkg/cmd/project/item-list/item_list_test.go +++ b/pkg/cmd/project/item-list/item_list_test.go @@ -732,5 +732,5 @@ func TestRunList_QueryUnsupported(t *testing.T) { } err := runList(config) - assert.EqualError(t, err, "the `--query` flag is not supported on this GitHub host; most likely you are targeting a version of GHES that does not yet have the query field available") + assert.EqualError(t, err, "the `--query` flag is not supported on this GitHub host") }