source: frontend/node_modules/webpack/lib/errors/NonErrorEmittedError.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 641 bytes
Line 
1/*
2 MIT License http://www.opensource.org/licenses/mit-license.php
3 Author Tobias Koppers @sokra
4*/
5
6"use strict";
7
8const makeSerializable = require("../util/makeSerializable");
9const WebpackError = require("./WebpackError");
10
11class NonErrorEmittedError extends WebpackError {
12 /**
13 * @param {EXPECTED_ANY} error value which is not an instance of Error
14 */
15 constructor(error) {
16 super();
17
18 this.name = "NonErrorEmittedError";
19 this.message = `(Emitted value instead of an instance of Error) ${error}`;
20 }
21}
22
23makeSerializable(
24 NonErrorEmittedError,
25 "webpack/lib/errors/NonErrorEmittedError"
26);
27
28module.exports = NonErrorEmittedError;
Note: See TracBrowser for help on using the repository browser.