Code coverage report for lib/util/error-factory.js

Statements: 100% (5 / 5)      Branches: 100% (0 / 0)      Functions: 100% (2 / 2)      Lines: 100% (5 / 5)      Ignored: none     

All files » lib/util/ » error-factory.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20    1           1   14 4             1  
'use strict';
 
var PluginError = require('gulp-util').PluginError;
 
/**
 * @param {String} namespace
 * @return {Function}
 */
var errorFactory = function(namespace)
{
  return function(message) {
    return new PluginError(namespace, message);
  };
};
 
/**
 * @type {errorFactory}
 */
module.exports = errorFactory;