UNPKG

kirbyup

Version:

Zero-config bundler for Kirby Panel plugins

18 lines (16 loc) 474 B
import { consola } from "consola"; //#region src/node/errors.ts var PrettyError = class extends Error { constructor(message) { super(message); this.name = this.constructor.name; if (typeof Error.captureStackTrace === "function") Error.captureStackTrace(this, this.constructor); else this.stack = new Error(message).stack; } }; function handleError(error) { consola.error(error.message); process.exitCode = 1; } //#endregion export { PrettyError, handleError };