gr2m / gr2m/github-project

Throw `GitHubProjectItemNotFoundError` when project item could not be found in query

Aperta
#145 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
feature Pull Request welcome
Lingua principale
JavaScript
Stelle
36
Fork
10
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### Please avoid duplicates

- [x] I checked [all open feature requests](https://github.com/gr2m/github-project/issues?q=is%3Aissue+is%3Aopen+label%3Afeature) 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

```js
{
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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.