diff --git a/src/test/ReactTestUtils.js b/src/test/ReactTestUtils.js index 8151a90a70..8ee27c7b5e 100644 --- a/src/test/ReactTestUtils.js +++ b/src/test/ReactTestUtils.js @@ -237,7 +237,9 @@ var ReactTestUtils = { findRenderedDOMComponentWithTag: function(root, tagName) { var all = ReactTestUtils.scryRenderedDOMComponentsWithTag(root, tagName); if (all.length !== 1) { - throw new Error('Did not find exactly one match for tag:' + tagName); + throw new Error('Did not find exactly one match ' + + '(found ' + all.length + ') for tag:' + tagName + ); } return all[0]; },