biofriction-wp-theme/node_modules/foundation-sites/gulp/tasks/babel-error.js

16 lines
303 B
JavaScript

var chalk = require('chalk');
module.exports = function(err) {
console.log(
chalk.red(
err.fileName +
(
err.loc ?
'(' + err.loc.line + ',' + err.loc.column + '): ' :
': '
)
) +
'error Babel: ' + err.message + '\n' +
err.codeFrame
);
}