get error msg from controller

This commit is contained in:
Uwe Steinmann 2021-11-26 14:32:00 +01:00
parent ab7cef5666
commit eae5699bdf

View File

@ -91,7 +91,7 @@ elseif ($action == "upload") { /* {{{ */
$controller->setParam('extmgr', $extMgr);
$controller->setParam('file', $_FILES['userfile']['tmp_name']);
if (!$controller($_POST)) {
UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
UI::exitError(getMLText("admin_tools"),$controller->getErrorMsg());
}
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_extension_import')));
add_log_line();