projecte_ionic/node_modules/stylus/lib/functions/error.js
2022-02-09 18:30:03 +01:00

18 lines
308 B
JavaScript
Executable file

var utils = require('../utils');
/**
* Throw an error with the given `msg`.
*
* @param {String} msg
* @api public
*/
function error(msg){
utils.assertType(msg, 'string', 'msg');
var err = new Error(msg.val);
err.fromStylus = true;
throw err;
};
error.params = ['msg'];
module.exports = error;