diff --git a/lib/base.php b/lib/base.php index 119e89f6ae0bf..c7fde4136fef3 100644 --- a/lib/base.php +++ b/lib/base.php @@ -394,8 +394,8 @@ private static function printUpgradePage(\OC\SystemConfig $systemConfig): void { if (!empty($incompatibleShippedApps)) { $l = Server::get(\OCP\L10N\IFactory::class)->get('core'); - $hint = $l->t('The files of the app %1$s were not replaced correctly. Make sure it is a version compatible with the server.', [implode(', ', $incompatibleShippedApps)]); - throw new \OCP\HintException('The files of the app ' . implode(', ', $incompatibleShippedApps) . ' were not replaced correctly. Make sure it is a version compatible with the server.', $hint); + $hint = $l->t('Application %1$s is not present or has a non-compatible version with this server. Please check the apps directory.', [implode(', ', $incompatibleShippedApps)]); + throw new \OCP\HintException('Application ' . implode(', ', $incompatibleShippedApps) . ' is not present or has a non-compatible version with this server. Please check the apps directory.', $hint); } $tmpl->assign('appsToUpgrade', $appManager->getAppsNeedingUpgrade($ocVersion));