From 7e2f8155d94ae90a0aeac51c53cecbc1054c7c6c Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 9 Oct 2018 15:30:49 +0800 Subject: [PATCH] Pman.php --- Pman.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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. } -- 2.39.2