From: Jan Schneider Date: Thu, 20 Jan 2011 18:32:16 +0000 (+0100) Subject: Show correct error message when running CLI scripts. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=008480d2b72d169c20e80ed5865a4739f1723004;p=horde.git Show correct error message when running CLI scripts. --- diff --git a/framework/Core/lib/Horde/Registry.php b/framework/Core/lib/Horde/Registry.php index 8a9fc55bc..23b71c04a 100644 --- a/framework/Core/lib/Horde/Registry.php +++ b/framework/Core/lib/Horde/Registry.php @@ -1775,7 +1775,7 @@ class Horde_Registry { if (Horde_Cli::runningFromCLI()) { $cli = new Horde_Cli(); - $cli->fatal(Horde_Core_Translation::t("You are not authenticated.")); + $cli->fatal($e ? $e : Horde_Core_Translation::t("You are not authenticated.")); } if (is_null($e)) {