[BUGFIX] Use correct array structure for EM error messages
[Packages/TYPO3.CMS.git] / typo3 / sysext / extensionmanager / Classes / Controller / DownloadController.php
index 71b8e00..2cb75b6 100644 (file)
@@ -220,8 +220,10 @@ class DownloadController extends AbstractController {
                } catch (\TYPO3\CMS\Extensionmanager\Exception\ExtensionManagerException $e) {
                        $errorMessages = array(
                                $extension->getExtensionKey() => array(
-                                       'code' => $e->getCode(),
-                                       'message' => $e->getMessage(),
+                                       array(
+                                               'code' => $e->getCode(),
+                                               'message' => $e->getMessage(),
+                                       )
                                ),
                        );
                }