cdiddy77 / react-native-mediapipe

A React Native Camera and Player for MediaPipe applications.
MIT License
10 stars 12 forks source link

fix: cleanup error handling in the photo tab #98

Closed shackerman closed 4 months ago

shackerman commented 4 months ago

I started working on this and just wanted to see if I was on the right track. If I understand this correctly, I can set a catch in certain states to catch the error and give the error a variable name - in this case it would be "e" for the photo inference or "cancel" for the starting screen - and then in the screenState === 'error' path, I can somehow set it up to have unique messages for each error name - so for E, it could be something like "Unable to run inference" or in "cancel" it could be "User cancelled".