Skip to content

Commit

Permalink
logs: add more detail to exception logs
Browse files Browse the repository at this point in the history
  • Loading branch information
codeimpossible authored Jul 15, 2023
1 parent 550ed7f commit fd86374
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ if (fs.existsSync(credentialsFile)) {
console.log(`🐣 stored ${tweets.length} tweets.`);
}
} catch (e) {
console.log(`exception while fetching tweets. ${e}`, e.stack);
console.log(`exception while fetching tweets.`, e, e.stack);
console.log(JSON.stringify(e));
}
process.exit(0);
})(args[0], index.latestId);

0 comments on commit fd86374

Please sign in to comment.