node-git-server icon indicating copy to clipboard operation
node-git-server copied to clipboard

How reject works?

Open BenTimor opened this issue 3 years ago • 0 comments

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?

BenTimor avatar Dec 30 '22 14:12 BenTimor