Skip to content

Commit

Permalink
Merge branch 'logging-fix' of https://github.com/diervo/rollup into d…
Browse files Browse the repository at this point in the history
…iervo-logging-fix
  • Loading branch information
Rich-Harris committed Mar 9, 2017
2 parents 74a0d1b + 31a6e89 commit 1b0823a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/src/logging.js
Expand Up @@ -9,7 +9,7 @@ const errorSymbol = process.stderr.isTTY ? `🚨 ` : `Error: `;
export const stderr = console.error.bind( console ); // eslint-disable-line no-console

function log ( object, symbol ) {
const message = object.plugin ? `(${object.plugin} plugin) ${object.message}` : object.message;
const message = (object.plugin ? `(${object.plugin} plugin) ${object.message}` : object.message) || object;

stderr( `${symbol}${chalk.bold( message )}` );

Expand Down

0 comments on commit 1b0823a

Please sign in to comment.