From 6363fc0767d17db1764557e83ad3227d2aea65c9 Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Wed, 30 Jan 2019 14:39:37 -0800 Subject: [PATCH] Tweaked error message to provide more helpful info if shown --- src/devtools/store.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devtools/store.js b/src/devtools/store.js index 2471c7b9a1..c510d22030 100644 --- a/src/devtools/store.js +++ b/src/devtools/store.js @@ -57,7 +57,7 @@ export default class Store extends EventEmitter { getElementAtIndex(index: number): Element { if (index < 0 || index >= this.numElements) { - throw Error(`Invalid index ${index} specified`); + throw Error(`Invalid index ${index} specified; store contains ${this.numElements} items.`); } // Find wich root this element is in...