]> git.openstreetmap.org Git - nominatim.git/blobdiff - utils/setup.php
Do not swallow PEAR error.
[nominatim.git] / 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'])