From fd3fcea539878b8f96cb9bcad51152459442ab48 Mon Sep 17 00:00:00 2001 From: mfn Date: Thu, 26 Apr 2012 13:30:49 +0200 Subject: [PATCH] Do not swallow PEAR error. --- utils/setup.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/utils/setup.php b/utils/setup.php index 6415ea12..db15aa44 100755 --- a/utils/setup.php +++ b/utils/setup.php @@ -124,7 +124,10 @@ $oDB =& getDB(); $x = $oDB->getRow('select * from place limit 1'); - if (!$x || PEAR::isError($x)) fail('No Data'); + if (PEAR::isError($x)) { + fail($x->getMessage()); + } + if (!$x) fail('No Data'); } if ($aCMDResult['create-functions'] || $aCMDResult['all']) -- 2.39.5