Skip to content

Commit 154ef48

Browse files
authored
Stringify wrong argument for easier debugging
1 parent a5aea01 commit 154ef48

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)