Skip to content

Commit 4e1b6ee

Browse files
authored
Merge pull request #38009 from nextcloud/backport/37925/stable26
[stable26] fix: change maintenance mode info wording
2 parents 02dbc04 + 6a04405 commit 4e1b6ee

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

lib/private/Console/Application.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -178,17 +178,13 @@ public function loadCommands(
178178
* for writing outputs.
179179
* @return void
180180
*/
181-
private function writeMaintenanceModeInfo(
182-
InputInterface $input, ConsoleOutputInterface $output
183-
) {
181+
private function writeMaintenanceModeInfo(InputInterface $input, ConsoleOutputInterface $output): void {
184182
if ($input->getArgument('command') !== '_completion'
185183
&& $input->getArgument('command') !== 'maintenance:mode'
186184
&& $input->getArgument('command') !== 'status') {
187185
$errOutput = $output->getErrorOutput();
188-
$errOutput->writeln(
189-
'<comment>Nextcloud is in maintenance mode, hence the database isn\'t accessible.' . PHP_EOL .
190-
'Cannot perform any command except \'maintenance:mode --off\'</comment>' . PHP_EOL
191-
);
186+
$errOutput->writeln('<comment>Nextcloud is in maintenance mode, no apps are loaded.</comment>');
187+
$errOutput->writeln('<comment>Commands provided by apps are unavailable.</comment>');
192188
}
193189
}
194190

0 commit comments

Comments
 (0)