gabrielcsapo / gabrielcsapo/node-git-server

How reject works?

Aperta
#110 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
262
Fork
81
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Lets say I listen to some push event and for some reason I decide to reject this push. I tried to do something like:

```
repos.on("push", (data: PushData) => {
data.reject(403, `Rejected! Have a good day`)
});
```

It really returns some error to the client, But it doesn't return the specific message I chose (It does send the correct code)

What am I doing wrong?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.