gabrielcsapo / gabrielcsapo/node-git-server

How reject works?

オープン
#110 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
262
フォーク
81
PR マージ指標
30日以内にマージされた PR はありません

説明

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?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。