Tweak the warning messages

This commit is contained in:
Dan Abramov 2015-12-27 00:07:14 +00:00
parent b88280a7fa
commit 7ad3bb259c

View File

@ -27,8 +27,10 @@ export default function createDevTools(children) {
if (!props.store && !context.store) { if (!props.store && !context.store) {
console.error( console.error(
`DevTools cannot render because no Redux store was injected via \ 'Redux DevTools could not render. You must pass the Redux store ' +
props or <Provide>`); 'to <DevTools> either as a "store" prop or by wrapping it in a ' +
'<Provider store={store}>.'
);
return; return;
} }
@ -40,8 +42,10 @@ props or <Provide>`);
if (!this.liftedStore) { if (!this.liftedStore) {
console.error( console.error(
`DevTools cannot render because the store not been instrumented \ 'Redux DevTools could not render. Did you forget to include ' +
with DevTools.instrument()`); 'DevTools.instrument() in your store enhancer chain before ' +
'using createStore()?'
);
} }
} }