How to use the less.formatError function in less

To help you get started, we’ve selected a few less examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gruntjs / grunt-contrib-less / tasks / less.js View on Github external
var lessError = function(e, file) {
    var message = less.formatError ? less.formatError(e) : formatLessError(e);

    grunt.log.error(message);
    grunt.fail.warn('Error compiling ' + file);
  };
github codylindley / hippojs / node_modules / grunt-contrib / node_modules / grunt-contrib-less / tasks / less.js View on Github external
var lessError = function(e) {
    var message = less.formatError ? less.formatError(e) : formatLessError(e);

    grunt.log.error(message);
    grunt.fail.warn('Error compiling LESS.', 1);
  };
github felixge / node-romulus / lib / renderLessFile.js View on Github external
function formatError(err) {
  var errObject = new Error(less.formatError(err));

  return errObject;
}
github UniversalViewer / universalviewer / tasks / theme.js View on Github external
var lessError = function(e, file) {
        var message = less.formatError ? less.formatError(e) : formatLessError(e);

        grunt.log.error(message);
        grunt.fail.warn('Error compiling ' + file);
    };
github pokemontrades / flairhq / node_modules / grunt-contrib-less / tasks / less.js View on Github external
var lessError = function(e, file) {
    var message = less.formatError ? less.formatError(e) : formatLessError(e);

    grunt.log.error(message);
    grunt.fail.warn('Error compiling ' + file);
  };
github Leeft / Star-Citizen-WebGL-Map / node_modules / grunt-contrib-less / tasks / less.js View on Github external
var lessError = function(e, file) {
    var message = less.formatError ? less.formatError(e) : formatLessError(e);

    grunt.log.error(message);
    grunt.fail.warn('Error compiling ' + file);
  };
github 1PhoenixM / avior-service / node_modules / grunt-contrib-less / tasks / less.js View on Github external
var lessError = function(e, file) {
    var message = less.formatError ? less.formatError(e) : formatLessError(e);

    grunt.log.error(message);
    grunt.fail.warn('Error compiling ' + file);
  };
github chrisekelley / coconut / node_modules / grunt-contrib-less / tasks / less.js View on Github external
var lessError = function(e, file) {
    var message = less.formatError ? less.formatError(e) : formatLessError(e);

    grunt.log.error(message);
    grunt.fail.warn('Error compiling ' + file);
  };
github dpricha89 / cloudsu / node_modules / grunt-contrib-less / tasks / less.js View on Github external
var lessError = function(e, file) {
    var message = less.formatError ? less.formatError(e) : formatLessError(e);

    grunt.log.error(message);
    grunt.fail.warn('Error compiling ' + file);
  };