Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var showError = function (err) {
var file = err.file.replace(dir(config.dirs.css), '');
notifier.notify({
'title': 'SASS error',
'message': err.message + " at " + file
});
con.custom(chalk.red.bold('SASS error: ') + err.message);
/* Don't show the full size of the path in the error */
con.custom(chalk.red.bold('File: ') + file);
con.custom(chalk.red.bold('Position: ') + 'Line:' + err.line + ' Column:' + err.column);
};