Skip to content

Conversation

@rcjsuen
Copy link
Member

@rcjsuen rcjsuen commented Mar 21, 2018

Found non-matching argument named return in descriptor.json for C function git_status_file

The change I made for #1467 helped me discover an error in our wrapper for git_status_file. It seems like Status.file does not actually expose the C function's error code when an error occurs. I've fixed the descriptor and also added a test to hopefully ensure that this won't happen again in the future.

Due to a structural mistake in descriptor.json, Status.file does not
expose git_status_file's error code in the rejected promise.

The fix is the correct the JSON and also add a test to ensure that
this case is covered should it happen again in the future.

Signed-off-by: Remy Suen <remy.suen@gmail.com>
@implausible implausible merged commit 3535798 into nodegit:master Apr 6, 2018
@rcjsuen rcjsuen deleted the Status-file-no-err-fix branch April 6, 2018 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants