UNPKG

@dillonkearns/elm-graphql

Version:

<img src="https://cdn.jsdelivr.net/gh/martimatix/logo-graphqelm/logo.svg" alt="dillonearns/elm-graphql logo" width="40%" align="right">

14 lines (10 loc) 316 B
module.exports = class LoadConfigError extends Error { constructor(error, configPath) { super(error.message); this.name = 'LoadConfigError'; const stack = error.stack.split('\n').slice(1); stack.unshift(this.toString()); this.stack = stack.join('\n'); this.meta = { configPath }; } };