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 | |
---|
1 | var utils = require('../utils');
|
---|
2 |
|
---|
3 | /**
|
---|
4 | * Throw an error with the given `msg`.
|
---|
5 | *
|
---|
6 | * @param {String} msg
|
---|
7 | * @api public
|
---|
8 | */
|
---|
9 |
|
---|
10 | function error(msg){
|
---|
11 | utils.assertType(msg, 'string', 'msg');
|
---|
12 | var err = new Error(msg.val);
|
---|
13 | err.fromStylus = true;
|
---|
14 | throw err;
|
---|
15 | };
|
---|
16 | error.params = ['msg'];
|
---|
17 | module.exports = error;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.