configurationError.js 350 B

1234567891011121314151617
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports["default"] = _default;
  6. /**
  7. * Create configurationError from text and set CLI exit code
  8. *
  9. * @param {string} text
  10. * @return {Error} - The error, with text and exit code
  11. */
  12. function _default(text) {
  13. var err = new Error(text);
  14. err.code = 78;
  15. return err;
  16. }