[TYPO3-core] RFC #15490: Throw exception instead of dying in enableFields() function

Ernesto Baschny [cron IT] ernst at cron-it.de
Mon Sep 6 19:55:04 CEST 2010


Dmitry Dulepov schrieb am 06.09.2010 13:12:
> Hi!
> 
> Steffen Gebert wrote:
>> Problem:
>> When you call
>>> tslib_cObj::enableFields($table);
>> with an unknown table, TYPO3 dies with the following error message:
>>> NO entry in the $TCA-array for the table "blabla". This means that
>>> the function enableFields() is called with an invalid table name as
>>> argument.
>> Solution:
>> Instead of calling die() an Exception should be thrown. The backtrace
>> can give useful information, where the function is called.
> 
> Huge +1 by reading!

Cool, I didn't know we can give "huge +1". Does it weight more? ;) Kidding!

Nice to see that feature and "mega post +1" from my side too on that!

I would have changed the wording, thou, keeping the error message more
technical, exactly like Jigal suggested.

Cheers,
Ernesto


More information about the TYPO3-team-core mailing list