]> git.openstreetmap.org Git - nominatim.git/commitdiff
Do not swallow PEAR error.
authormfn <markus@fischer.name>
Thu, 26 Apr 2012 11:30:49 +0000 (13:30 +0200)
committermfn <markus@fischer.name>
Thu, 26 Apr 2012 11:30:49 +0000 (13:30 +0200)
utils/setup.php

index 6415ea123d843358165029d638a2aadb6eab0a31..db15aa446b640c32f9e481c7d4396fd59aaf80b6 100755 (executable)
 
                $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'])