Simplify error message
This commit is contained in:
parent
aeeb8a3d93
commit
f8d855f502
2 changed files with 2 additions and 2 deletions
|
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue