aboutsummaryrefslogtreecommitdiff
path: root/node_modules/stylus/lib/functions/warn.js
blob: eee647d69b14be55b3fbe9ef27a0d3e8c548fcb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
var utils = require('../utils')
  , nodes = require('../nodes');

/**
 * Warn with the given `msg` prefixed by "Warning: ".
 *
 * @param {String} msg
 * @api public
 */

module.exports = function warn(msg){
  utils.assertType(msg, 'string', 'msg');
  console.warn('Warning: %s', msg.val);
  return nodes.null;
};