mxstbr/pgp.asc

Better error handling

Open

#22 ouverte le 28 juil. 2015

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)HTML (5 forks)github user discovery
Backendenhancementhelp wanted

Métriques du dépôt

Stars
 (56 stars)
Métriques de merge PR
 (Métriques PR en attente)

Description

Currently, person.rb returns false if something went wrong with the Hall of Fame submission, which then triggers the persons_controller to show an error alert.

The issue is that the error message is always the same one, no matter where in the whole process the problem occurred. I do not have enough Rails experience to fix this, as I don't know how to return an error message from the model and use it in the controller. Any ideas?

Guide contributeur