From c0ec8e340eb825f2ff1864842d1624160d0807f9 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Thu, 20 Jan 2011 19:32:16 +0100 Subject: [PATCH] Show correct error message when running CLI scripts. --- framework/Core/lib/Horde/Registry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- 2.11.0