UniversityDAO / udao

The official UniversityDAO DApp repository.
GNU Lesser General Public License v2.1
4 stars 4 forks source link

Error Handling in app #55

Open oslfmt opened 2 years ago

oslfmt commented 2 years ago

Error handling is practically non-existent right now. We'll need someone to devise an error checking plan and then test for errors and then solve them aka "bug hunting". See #54 for more details.

oslfmt commented 2 years ago

Here's a list of issues we need to address. These are all errors, but not criticial. They won't crash the app. The big picture is:

More specifically:

The simplest strategy for now is put error handling in all the api functions. Then do a simple UI alert to the user about the error and type, along with a suggestion. This can be a simple alert() function call.

In the future, we can take preventative measures with the UI to prevent the errors from even occurring in the first place, such as removing vote buttons, hiding things if no NFT, etc.

oslfmt commented 2 years ago

Another bug: setting metamask provider in app. If there is no metamask installed, app will never load and will just display a blank page. This is a critical bug.

Will address along with the metamask connect refactoring