From 5e8263cb2aeedc6732425214c7044858837dd1b5 Mon Sep 17 00:00:00 2001 From: Raghuvir Kasturi Date: Thu, 8 Dec 2016 18:13:01 +1300 Subject: [PATCH] Use appropriate console methods --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index f2dce60b..8545f2c5 100644 --- a/index.js +++ b/index.js @@ -11,11 +11,11 @@ module.exports = function(source, map) { filename: filename, format: 'es', onerror: (err) => { - console.log(err.message); + console.error(err.message); this.emitError(err.message); }, onwarn: (warn) => { - console.log(warn.message); + console.warn(warn.message); this.emitWarn(warn.message); } });