Commit 174e6b46 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Output exception messages as text in cli scripts (bug #844604)



When an exception occurs in a command line upgrade, the message should
be output as text rather than an html page, to make it easier to read.

Change-Id: I458ba57c05fff2f76b42a73d021058c0feee5f47
Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent 72d38ee2
......@@ -558,7 +558,7 @@ class MaharaException extends Exception {
exit; // let it be caught by phpunit
}
if (defined('CRON')) {
if (defined('CRON') || defined('CLI')) {
echo $this->render_exception();
exit;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment