Add new line at the end of error message in CLI mode

pull/6724/head
Aleksander Machniak 6 years ago
parent 00173a7622
commit 72ad567db6

@ -1363,13 +1363,13 @@ class rcube
self::$instance->output->raise_error($arg['code'], $arg['message']); self::$instance->output->raise_error($arg['code'], $arg['message']);
} }
else if ($cli) { else if ($cli) {
fwrite(STDERR, 'ERROR: ' . $arg['message']); fwrite(STDERR, 'ERROR: ' . trim($arg['message']) . "\n");
} }
exit(1); exit(1);
} }
else if ($cli) { else if ($cli) {
fwrite(STDERR, 'ERROR: ' . $arg['message']); fwrite(STDERR, 'ERROR: ' . trim($arg['message']) . "\n");
} }
} }

Loading…
Cancel
Save