From d994755a62313e0c0d929bb1d1e62f7d8c98eeda Mon Sep 17 00:00:00 2001 From: myk bilokonsky Date: Mon, 10 Apr 2017 01:52:13 +0200 Subject: cleanup output --- index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 7a22bfd..2e8d8a6 100644 --- a/index.js +++ b/index.js @@ -61,9 +61,11 @@ function boost(rows) { }) .forEach(function(id) { M.post(`statuses/${id}/reblog`, function(err, result) { + if (err) { + return console.error(err); + } + boosted[id] = true; console.log(`boosted status #${id}`); - console.dir(err); - console.dir(result); }); }) } -- cgit