Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUGFIX] Use RuntimeException instead of die()
There are a few places left where Kasper-Kode stopped a process with die(). Nowadays, with PHP 7, Errors and Exceptions are used in order to avoid the full stop of a process. Using Exceptions instead of die() allows for ExceptionHandlers to handle such an error and return a proper HTTP response if called from the web. Resolves: #89128 Releases: master Change-Id: Ia50863104fb91303ca3b2ae5ac5cd1466fa982b6 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/61659 Tested-by: TYPO3com <noreply@typo3.com> Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de> Tested-by: Georg Ringer <georg.ringer@gmail.com> Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de> Reviewed-by: Richard Haeser <richard@maxserv.com> Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
- Loading branch information
1 parent
aeff733
commit 2d8a956
Showing
2 changed files
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters