Skip to content
Extraits de code Groupes Projets
Valider 66ba4e4f rédigé par Matthieu Aubry's avatar Matthieu Aubry Validation de Stefan Giehl
Parcourir les fichiers

API: when an invalid format is specified, keep the error message shorter (#12401)

parent 4e9722c7
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -67,7 +67,13 @@ class ExceptionHandler
{
Common::sendHeader('Content-Type: text/html; charset=utf-8');
echo self::getErrorResponse($exception);
try {
echo self::getErrorResponse($exception);
} catch(Exception $e) {
// When there are failures while generating the HTML error response itself,
// we simply print out the error message instead.
echo $exception->getMessage();
}
exit(1);
}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter