input-error.js 259 B

123456789
  1. /*
  2. Copyright 2012-2015, Yahoo Inc.
  3. Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
  4. */
  5. module.exports.create = function(message) {
  6. const err = new Error(message);
  7. err.inputError = true;
  8. return err;
  9. };