Skip to content

Commit

Permalink
Merge pull request reduxjs#4057 from reduxjs/feature/4x-error-messages
Browse files Browse the repository at this point in the history
Former-commit-id: a50d018
Former-commit-id: 4258ba7
  • Loading branch information
markerikson committed Apr 2, 2021
2 parents 816b78e + 95e7d6c commit ba739e7
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 7 deletions.
1 change: 1 addition & 0 deletions errors.json.REMOVED.git-id
@@ -0,0 +1 @@
2fac82d961e26a33929ddfb9f400b767e4028823
2 changes: 1 addition & 1 deletion rollup.config.js.REMOVED.git-id
@@ -1 +1 @@
9a32e5147923b5983dc0e24124a9d0ba9ebf126a
90af2fd2bebc55728b0d8d3f90ae6350c0da0da8
1 change: 1 addition & 0 deletions scripts/mangleErrors.js.REMOVED.git-id
@@ -0,0 +1 @@
fcd7e7391da1cb7ac4a9fb471298f91474f47043
2 changes: 1 addition & 1 deletion src/bindActionCreators.js.REMOVED.git-id
@@ -1 +1 @@
dd78819e5615a221c5f5d6224b44cf72f4fd63f4
8e610e857203ead0343c36a264adcbbbd40fcd12
2 changes: 1 addition & 1 deletion src/combineReducers.js.REMOVED.git-id
@@ -1 +1 @@
dcf06f2829ebc3ab3c0c9f85735e81e32b36eeb6
6ed79c245ca26e73bacd6cd91db6ddb0d1104c51
2 changes: 1 addition & 1 deletion src/createStore.js.REMOVED.git-id
@@ -1 +1 @@
45b09aca009a5a9a2298800982c77b87e45b47ab
5326a52ff8a82cca2a564d2f5b6eaf16396411f7
15 changes: 15 additions & 0 deletions src/utils/formatProdErrorMessage.js
@@ -0,0 +1,15 @@
/**
* Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js
*
* Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes
* during build.
* @param {number} code
*/
function formatProdErrorMessage(code) {
return (
`Minified Redux error #${code}; visit https://redux.js.org/Errors?code=${code} for the full message or ` +
'use the non-minified dev environment for full errors. '
)
}

export default formatProdErrorMessage
1 change: 1 addition & 0 deletions src/utils/kindOf.js.REMOVED.git-id
@@ -0,0 +1 @@
c5395a1df6b9f9ee02ed5e393140e4ccef4e5445
2 changes: 1 addition & 1 deletion test/bindActionCreators.spec.js.REMOVED.git-id
@@ -1 +1 @@
54031dbbeefcb2c2deb2507b29f3b4653b19c793
1cebddb13e68d9631b9087f00fae8d5a11fb0ae7
2 changes: 1 addition & 1 deletion test/combineReducers.spec.js.REMOVED.git-id
@@ -1 +1 @@
cfd712da380142f8aba47f37add1db132a57febf
a72c1541dd446692cf3bc2496e99a838f4ea93c2
2 changes: 1 addition & 1 deletion test/createStore.spec.js.REMOVED.git-id
@@ -1 +1 @@
9bbac18428e62d57a68306a56c5e17ce6e55f13d
dcbf65cf3e5d3da0bf7bd0a1934b8951120f395c

0 comments on commit ba739e7

Please sign in to comment.