Skip to content

Commit f8d855f

Browse files
committed
Simplify error message
1 parent aeeb8a3 commit f8d855f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/cmd/project/item-list/item_list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func runList(config listConfig) error {
114114
return err
115115
}
116116
if !features.ProjectItemQuery {
117-
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")
117+
return fmt.Errorf("the `--query` flag is not supported on this GitHub host")
118118
}
119119
}
120120

pkg/cmd/project/item-list/item_list_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,5 +732,5 @@ func TestRunList_QueryUnsupported(t *testing.T) {
732732
}
733733

734734
err := runList(config)
735-
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")
735+
assert.EqualError(t, err, "the `--query` flag is not supported on this GitHub host")
736736
}

0 commit comments

Comments
 (0)