github-project
github-project copied to clipboard
Throw `GitHubProjectItemNotFoundError` when project item could not be found in query
Please avoid duplicates
- [x] I checked all open feature requests and none of them matched my problem.
What’s missing?
A custom error for when an item is not found
Why?
currently a GraphqlResponseError is thrown, with an error looking like this
{
type: 'VALIDATION',
path: [ 'BU' ],
locations: [ { line: 4, column: 11 } ],
message: 'The item does not exist in the project'
}
Alternatives you tried
The error can be caught and identified by manually looking through all errors included in the response
Would you be interested in contributing the feature?
- [ ] yes
Another error can look like this
GraphqlResponseError: Request failed due to following response errors:
- Could not resolve to a node with the global id of 'PVTI_lADNJr_OAAWBdc4Cg8PL'.