Simplify error message

This commit is contained in:
William Martin 2026-02-18 17:23:06 +01:00
parent aeeb8a3d93
commit f8d855f502
2 changed files with 2 additions and 2 deletions

View file

@ -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")
}
}

View file

@ -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")
}