[TYPO3-mvc] RFC #8046: action controller doesn't show all available error messages

Martin Kutschker masi-no at spam-typo3.org
Thu Jun 3 12:55:53 CEST 2010


Hi!

Bugtracker reference:

http://forge.typo3.org/issues/show/8046

Problem:

The action controller doesn't show all available error messages making it hard to see what exactly
failed. The reason is that property errors contain other errors.

Solution:

As this could occur in other situations as well solve this by making the getMessage() method return
all messages of child errors.

Examples (output from one of my extensions):

BEFORE:

An error occurred while trying to call Tx_BallroomDancing_Controller_TextController->showAction().
Error: Validation errors for argument "text".

AFTER:

An error occurred while trying to call Tx_BallroomDancing_Controller_TextController->showAction().
Error: Validation errors for argument "text"; Validation errors for property "year"; The given
subject was not in the valid range (1900 - 2100).

Note: the patch adds a nl2br() to ease readability with HTML (how to detect the output format?)

Masi







More information about the TYPO3-project-typo3v4mvc mailing list