mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 16:19:19 +02:00
ErrorHandler::userMessage only handled RuntimeException, but all validation throws in ThesisCreateController and ThesisEditController use plain Exception. This caused user-friendly messages like 'Le champ Nom/Prénom/Pseudo est requis' to fall through to the 'Une erreur inattendue est survenue…' generic message. Fix: add Exception check (after PDOException, since PDOException extends it) so all validation exceptions pass their message through.
264 KiB
264 KiB