Skip to content

Error handling

Oscar Miras edited this page Feb 18, 2021 · 1 revision

Fetch animals from firebase

  • check if we can connect to Firebase to fetch the animals
    • if so, display a message to the user that we can't connect to database
    • if possible, show the animals that are already loaded in memory (Vuex)

Insert a new animal in firebase

  • check if the animal has been inserted correctly in firebase
    • check if Firestorage throws any error regarding the uploaded photos

Sign up

  • form fields validation
  • Account already exists (email)
  • if the user was not created in Firebase, inform to the user. Give as much info as possible...

Sign in

  • form fields validation

Forgot password

  • If the username does not exist in database, display an error message to the user

Filter view

  • If there no animals with the matching criteria, show a message. Keep the filters but allow user to change them.

New Profile

  • form fields validation
  • check if the info is updated correctly in firebase

Adoption accept/decline