From 9800374b46b7db7fa45c2c785331203797008c99 Mon Sep 17 00:00:00 2001 From: Cliffano Subagio Date: Sat, 22 Nov 2014 22:51:51 +1100 Subject: [PATCH] Change screenshot error handling to not exit when one of the URLs caused error, simply log it and proceed with the rest. --- lib/baker.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/baker.js b/lib/baker.js index db4e4cd..530e508 100644 --- a/lib/baker.js +++ b/lib/baker.js @@ -51,7 +51,8 @@ Baker.prototype.screenshot = function (tags, cb) { } else { console.log('%s - Created %s', 'success'.green, file); } - cb(err); + // don't pass error here, when an error occurs then simply log it but proceed with the rest of the bookmarks + cb(); }); }