Gracefully handle webpages that cannot be parsed with jsdom/jQuery #42

Merged
merged 1 commit into from Aug 6, 2011

Conversation

Projects
None yet
2 participants
@jhurliman
Contributor

jhurliman commented Jul 26, 2011

This adds a try/catch block around the initialization of jsdom/jQuery for a fetched webpage and returns the exception (if any) as the callback err parameter instead of crashing the node.io process.

@chriso

This comment has been minimized.

Show comment Hide comment
@chriso

chriso Aug 6, 2011

Contributor

Perfect, thanks

Contributor

chriso commented Aug 6, 2011

Perfect, thanks

chriso added a commit that referenced this pull request Aug 6, 2011

Merge pull request #42 from jhurliman/master
Gracefully handle webpages that cannot be parsed with jsdom/jQuery

@chriso chriso merged commit b26a86c into node-js-libs:master Aug 6, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment