source: node_modules/redux/src/utils/formatProdErrorMessage.ts

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 526 bytes
RevLine 
[d24f17c]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 */
8export function formatProdErrorMessage(code: number) {
9 return (
10 `Minified Redux error #${code}; visit https://redux.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.