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

Add addFlowTopic function to bot class #120

Merged
merged 2 commits into from
Dec 18, 2016
Merged

Conversation

ValentinBrclz
Copy link
Contributor

Add addFlowTopic function to bot class

Feedback and correction requests are welcome.

This closes #117

callback(null, data);
}
else {
callback(new Error(`Edit failed: ${err}`));
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd simply pass err (without creating a new exception object) to the callback to be consistent with the rest of the code.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I took example on the doEdit function, this is why it is here. Will fix it asap

Copy link
Owner

@macbre macbre Dec 18, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

And I'll correct the rest of the cases where err is wrapped within a new exception instance - #121

@macbre macbre merged commit 0d8f71a into macbre:devel Dec 18, 2016
@macbre
Copy link
Owner

macbre commented Dec 18, 2016

Thanks!

ValentinBrclz added a commit to ValentinBrclz/WP-OubliSignature-Bot that referenced this pull request Aug 8, 2017
Using `addFlowTopic()` from macbre/nodemw#120 and version 0.11.0 of the package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add new-topic for Flow support
2 participants