"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.withError = withError;

var _chalk = _interopRequireDefault(require("chalk"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/**
 * 
 * @format
 */

/**
 * External dependencies
 */

/**
 * Internal dependencies
 */
function withError(message) {
  console.log(_chalk.default.red(message.toString().replace(/^(Error: )*/, 'Error: ')));
  process.exit(1);
}