| 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 |
} |