Skip to content

Commit

Permalink
Changing artoo.done behaviour in phantom
Browse files Browse the repository at this point in the history
  • Loading branch information
Yomguithereal committed Feb 9, 2015
1 parent 19c00fc commit 86b2836
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/phantom/artoo.phantom.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
};

// Telling phantom the scraping is over
artoo.phantom.done = function(data) {
artoo.phantom.send('done', data);
artoo.phantom.done = function(err, data) {
artoo.phantom.send('done', {error: err, data: data});
};

// Alias
Expand Down

0 comments on commit 86b2836

Please sign in to comment.