From 86b283671d36c75101bef8bf2ca6d16ec90d8c88 Mon Sep 17 00:00:00 2001 From: Yomguithereal Date: Mon, 9 Feb 2015 18:06:50 +0100 Subject: [PATCH] Changing artoo.done behaviour in phantom --- src/phantom/artoo.phantom.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/phantom/artoo.phantom.js b/src/phantom/artoo.phantom.js index bd613cf..15f0e61 100644 --- a/src/phantom/artoo.phantom.js +++ b/src/phantom/artoo.phantom.js @@ -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