[TASK] Show uncaught errors in Extension Manager 87/40887/7
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Fri, 3 Jul 2015 07:41:17 +0000 (09:41 +0200)
committerNicole Cordes <typo3@cordes.co>
Fri, 3 Jul 2015 20:52:16 +0000 (22:52 +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/40887
Reviewed-by: Markus Sommer <markussom@posteo.de>
Tested-by: Markus Sommer <markussom@posteo.de>
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
typo3/sysext/extensionmanager/Classes/Controller/ActionController.php

index 3977432..7eb949a 100644 (file)
@@ -105,6 +105,8 @@ class ActionController extends AbstractController {
                        );
                } catch (\TYPO3\CMS\Extensionmanager\Exception\ExtensionManagerException $e) {
                        $this->addFlashMessage($e->getMessage(), '', \TYPO3\CMS\Core\Messaging\FlashMessage::ERROR);
+               } catch (\TYPO3\CMS\Core\Package\Exception $e) {
+                       $this->addFlashMessage($e->getMessage(), '', \TYPO3\CMS\Core\Messaging\FlashMessage::ERROR);
                }
 
                return '';