Skip to content

Replace then() with done(), so that error callback is not swalled by … - #1047

Merged
johnhaley81 merged 1 commit into
nodegit:masterfrom
wasadigi:master
Jun 8, 2016
Merged

Replace then() with done(), so that error callback is not swalled by …#1047
johnhaley81 merged 1 commit into
nodegit:masterfrom
wasadigi:master

Conversation

@wasadigi

@wasadigi wasadigi commented Jun 8, 2016

Copy link
Copy Markdown
Contributor

When using the revwalk.walk function, if I make an error in the implementation of my callback, it is swalled by the code. Replacing then() with done() fixes the issue.

@johnhaley81

Copy link
Copy Markdown
Collaborator

This function needs a better implementation as well. Someday :)

Thanks @wasadigi

@johnhaley81
johnhaley81 merged commit 322c54f into nodegit:master Jun 8, 2016
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