From 7ad3bb259c2d750a0d8f94db93dfe0501fdb86b7 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Sun, 27 Dec 2015 00:07:14 +0000 Subject: [PATCH] Tweak the warning messages --- src/createDevTools.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/createDevTools.js b/src/createDevTools.js index f0acab93..9e1381af 100644 --- a/src/createDevTools.js +++ b/src/createDevTools.js @@ -27,8 +27,10 @@ export default function createDevTools(children) { if (!props.store && !context.store) { console.error( -`DevTools cannot render because no Redux store was injected via \ -props or `); + 'Redux DevTools could not render. You must pass the Redux store ' + + 'to either as a "store" prop or by wrapping it in a ' + + '.' + ); return; } @@ -40,8 +42,10 @@ props or `); if (!this.liftedStore) { console.error( -`DevTools cannot render because the store not been instrumented \ -with DevTools.instrument()`); + 'Redux DevTools could not render. Did you forget to include ' + + 'DevTools.instrument() in your store enhancer chain before ' + + 'using createStore()?' + ); } }