frostney / react-native-ibeacon

:satellite: iBeacon support for React Native
MIT License
375 stars 54 forks source link

Error handling for invalid uuid #12

Open frostney opened 9 years ago

frostney commented 9 years ago

If an uuid is given to the region that is not a valid a uuid, the error message Invalid parameter not satisfying: region != nil appears. If possible, it should read something along the lines of The UUID you provided is not valid.

mmazzarolo commented 8 years ago

I'm not strong on the iOS side but... is it possible to make errors like this catchable? (on Android it can be done easily by returning a promise)