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

Handle unexisting/deleted pages #82

Merged
merged 5 commits into from Nov 15, 2015
Merged

Handle unexisting/deleted pages #82

merged 5 commits into from Nov 15, 2015

Conversation

ValentinBrclz
Copy link
Contributor

For now, since "data" is undefined when the requested page is not existing, a type error occurs. This commit just handle the error.

@@ -372,13 +372,16 @@ module.exports = (function() {
return;
}

if(data === null)
callback(title+" does not exist", null);
Copy link
Owner

Choose a reason for hiding this comment

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

Please create an instance of Error and then pass it to the callback (nodejs convention).

@macbre macbre added the bug label Nov 15, 2015
Fix: missing return statement
@ValentinBrclz
Copy link
Contributor Author

Here you go. Sorry for that, still learning here =)

@macbre
Copy link
Owner

macbre commented Nov 15, 2015

No worries :) Thanks for the fix!

macbre added a commit that referenced this pull request Nov 15, 2015
Handle unexisting/deleted pages
@macbre macbre merged commit ca034f6 into macbre:devel Nov 15, 2015
@macbre macbre modified the milestone: v0.8 Nov 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants