Skip to content

Commit

Permalink
More helpful description for native-js prop mismatch
Browse files Browse the repository at this point in the history
Summary:
Similar as facebook#5605
Closes facebook#5673

Reviewed By: svcscm

Differential Revision: D2908218

Pulled By: nicklockwood

fb-gh-sync-id: da5e42ea660df2c0bb60165c7429d480414a0a20
  • Loading branch information
vjeux authored and facebook-github-bot-5 committed Feb 6, 2016
1 parent 97b8a57 commit 375abc3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion React/Base/RCTModuleMethod.m
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,10 @@ - (void)invokeWithBridge:(RCTBridge *)bridge
expectedCount -= 2;
}

RCTLogError(@"%@.%@ was called with %zd arguments, but expects %zd",
RCTLogError(@"%@.%@ was called with %zd arguments, but expects %zd. \
If you haven\'t changed this method yourself, this usually means that \
your versions of the native code and JavaScript code are out of sync. \
Updating both should make this error go away.",
RCTBridgeModuleNameForClass(_moduleClass), _JSMethodName,
actualCount, expectedCount);
return;
Expand Down

0 comments on commit 375abc3

Please sign in to comment.