We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1a3676 commit 00f3de5Copy full SHA for 00f3de5
lib/WebpackError.js
@@ -5,6 +5,16 @@
5
"use strict";
6
7
module.exports = class WebpackError extends Error {
8
+ constructor(message) {
9
+ super(message);
10
+ this.name = 'WebpackError';
11
+ this.message = message;
12
+ Error.captureStackTrace(this, this.constructor);
13
+
14
+ /** @type {string} */
15
+ this.details = undefined;
16
+ }
17
18
inspect() {
19
return this.stack + (this.details ? `\n${this.details}` : "");
20
}
0 commit comments