Skip to content

Commit 79bf2f3

Browse files
authored
Merge pull request #605 from pvorona/master
Stringify wrong argument for easier debugging
2 parents a5aea01 + 154ef48 commit 79bf2f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/connectAdvanced.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export default function connectAdvanced(
6767
invariant(
6868
typeof WrappedComponent == 'function',
6969
`You must pass a component to the function returned by ` +
70-
`connect. Instead received ${WrappedComponent}`
70+
`connect. Instead received ${JSON.stringify(WrappedComponent)}`
7171
)
7272

7373
const wrappedComponentName = WrappedComponent.displayName

0 commit comments

Comments
 (0)