X Tutup
The Wayback Machine - https://web.archive.org/web/20200916181358/https://github.com/nodegit/nodegit/pull/1468
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose error code in Status.file #1468

Merged
merged 1 commit into from Apr 6, 2018

Conversation

@rcjsuen
Copy link
Member

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
2 checks passed
2 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@rcjsuen rcjsuen deleted the rcjsuen:Status-file-no-err-fix branch Apr 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.
X Tutup