mirror of
https://github.com/zebrajr/react.git
synced 2025-12-07 00:20:28 +01:00
19 lines
513 B
JavaScript
19 lines
513 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
*/
|
|
|
|
// Do not require this module directly! Use normal `invariant` calls with
|
|
// template literal strings. The messages will be converted to ReactError during
|
|
// build, and in production they will be minified.
|
|
|
|
function ReactError(error) {
|
|
error.name = 'Invariant Violation';
|
|
return error;
|
|
}
|
|
|
|
export default ReactError;
|