|
Last change
on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
542 bytes
|
| Line | |
|---|
| 1 | /**
|
|---|
| 2 | * Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js
|
|---|
| 3 | *
|
|---|
| 4 | * Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes
|
|---|
| 5 | * during build.
|
|---|
| 6 | * @param {number} code
|
|---|
| 7 | */
|
|---|
| 8 | export function formatProdErrorMessage(code: number) {
|
|---|
| 9 | return (
|
|---|
| 10 | `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or ` +
|
|---|
| 11 | 'use the non-minified dev environment for full errors. '
|
|---|
| 12 | )
|
|---|
| 13 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.