From: Alan Knowles Date: Tue, 9 Oct 2018 07:30:49 +0000 (+0800) Subject: Pman.php X-Git-Url: http://git.roojs.org/?p=Pman.Base;a=commitdiff_plain;h=7e2f8155d94ae90a0aeac51c53cecbc1054c7c6c Pman.php --- diff --git a/Pman.php b/Pman.php index 128bd78..77683de 100644 --- a/Pman.php +++ b/Pman.php @@ -462,6 +462,11 @@ class Pman extends HTML_FlexyFramework_Page $this->transObj->query('ROLLBACK'); } + $cli = HTML_FlexyFramework::get()->cli; + if ($cli) { + echo "ERROR: " .$str . "\n"; // print the error first, as DB might fail.. + } + if ($type !== false) { if(!empty($errors)){ @@ -474,7 +479,6 @@ class Pman extends HTML_FlexyFramework_Page $cli = HTML_FlexyFramework::get()->cli; if ($cli) { - echo "ERROR: " .$str . "\n"; exit(1); // cli --- exit code to stop shell execution if necessary. }