Skip to content

Commit

Permalink
log the notification message to stderr
Browse files Browse the repository at this point in the history
as that's where extra info should be printed
  • Loading branch information
sindresorhus committed Jul 9, 2014
1 parent 09cba33 commit c3b1df6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ UpdateNotifier.prototype.notify = function (opts) {

if (opts.defer) {
process.on('exit', function () {
console.log(message);
console.error(message);
});
} else {
console.log(message);
console.error(message);
}

return this;
Expand Down

0 comments on commit c3b1df6

Please sign in to comment.