Various feedback items

- Add logger call on theme install failure
- Add todo in Module\Admin\DBSync
This commit is contained in:
Hypolite Petovan 2019-04-27 22:22:21 -04:00
parent 71546705f8
commit 6df37afb82
2 changed files with 2 additions and 0 deletions

View File

@ -177,6 +177,7 @@ class Theme
return true;
} catch (\Exception $e) {
Logger::error('Theme installation failed', ['theme' => $theme, 'error' => $e->getMessage()]);
return false;
}
}

View File

@ -36,6 +36,7 @@ class DBSync extends BaseAdminModule
if ($a->argc > 2) {
if ($a->argv[2] === 'check') {
// @TODO Seems like a similar logic like Update::check()
$retval = DBStructure::update($a->getBasePath(), false, true);
if ($retval === '') {
$o .= L10n::t("Database structure update %s was successfully applied.", DB_UPDATE_VERSION) . "<br />";