source: trip-planner-front/node_modules/stylus/lib/functions/error.js@ fa375fe

Last change on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 308 bytes
Line 
1var utils = require('../utils');
2
3/**
4 * Throw an error with the given `msg`.
5 *
6 * @param {String} msg
7 * @api public
8 */
9
10function error(msg){
11 utils.assertType(msg, 'string', 'msg');
12 var err = new Error(msg.val);
13 err.fromStylus = true;
14 throw err;
15};
16error.params = ['msg'];
17module.exports = error;
Note: See TracBrowser for help on using the repository browser.