UNPKG

@corejam/base

Version:

A scaffolding for building progressive GraphQL powered jamstack applications

21 lines 771 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PluginLoadError = void 0; /** * Generic error when we fail to load a plugin */ class PluginLoadError extends Error { constructor(plugin, e) { if (plugin[0] === "/") { plugin = `Local Plugin: ${plugin}`; } super(`${plugin} failed to load >>> ${e.message}`); this.name = "PluginLoadError" + e.name; this.stack += e.stack ? e.stack : ""; // Set the prototype explicitly. This is a TS limitation // https://github.com/facebook/jest/issues/8279#issuecomment-539775425 Object.setPrototypeOf(this, PluginLoadError.prototype); } } exports.PluginLoadError = PluginLoadError; //# sourceMappingURL=Errors.js.map