blob: 5c6e0c451bc2df2ecca27abc80059b49cb626d31 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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 };
}
};
|