mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
9b7958c2f2
Summary: Instead of returning a `bool` which gives no information about the cause of the error, return `void` and throw when there's some error. Another alternative is returning `std::error_code`, but that's less flexible than throwing, and this API already supports throwing. Changelog: [Internal] Reviewed By: jbower-fb Differential Revision: D19170033 fbshipit-source-id: 870cd996a1a53c94524455f31765c1da99f57a1d