Skip to content

Commit 7ad3bb2

Browse files
committed
Tweak the warning messages
1 parent b88280a commit 7ad3bb2

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/createDevTools.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ export default function createDevTools(children) {
2727

2828
if (!props.store && !context.store) {
2929
console.error(
30-
`DevTools cannot render because no Redux store was injected via \
31-
props or <Provide>`);
30+
'Redux DevTools could not render. You must pass the Redux store ' +
31+
'to <DevTools> either as a "store" prop or by wrapping it in a ' +
32+
'<Provider store={store}>.'
33+
);
3234
return;
3335
}
3436

@@ -40,8 +42,10 @@ props or <Provide>`);
4042

4143
if (!this.liftedStore) {
4244
console.error(
43-
`DevTools cannot render because the store not been instrumented \
44-
with DevTools.instrument()`);
45+
'Redux DevTools could not render. Did you forget to include ' +
46+
'DevTools.instrument() in your store enhancer chain before ' +
47+
'using createStore()?'
48+
);
4549
}
4650
}
4751

0 commit comments

Comments
 (0)