[TASK] Show uncaught errors in Extension Manager 18/40918/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Fri, 3 Jul 2015 07:41:17 +0000 (09:41 +0200)
committerNicole Cordes <typo3@cordes.co>
Mon, 13 Jul 2015 11:50:12 +0000 (13:50 +0200)
Errors in the Extension Manager (e.g. deleting an extension w/o proper
file permissions) are now caught and displayed as a flash message.

Resolves: #67898
Releases: master, 6.2
Change-Id: I8f8334f2f0ea1c2fcf3ab49122c2c52447efc904
Reviewed-on: http://review.typo3.org/40918
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
typo3/sysext/extensionmanager/Classes/Controller/ActionController.php

index 7541328..fa64fb9 100644 (file)
@@ -104,6 +104,8 @@ class ActionController extends AbstractController {
                        );
                } catch (\TYPO3\CMS\Extensionmanager\Exception\ExtensionManagerException $e) {
                        $this->addFlashMessage(htmlspecialchars($e->getMessage()), '', \TYPO3\CMS\Core\Messaging\FlashMessage::ERROR);
+               } catch (\TYPO3\Flow\Utility\Exception $e) {
+                       $this->addFlashMessage(htmlspecialchars($e->getMessage()), '', \TYPO3\CMS\Core\Messaging\FlashMessage::ERROR);
                }
 
                return '';