From: marc tobias Date: Fri, 6 Mar 2020 16:52:46 +0000 (+0100) Subject: print warning if no Tiger files found X-Git-Tag: v3.5.0~66^2 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/bb569aa48489a9447a165f47c4ce91d9f4a4cb7a print warning if no Tiger files found --- diff --git a/lib/setup/SetupClass.php b/lib/setup/SetupClass.php index 71da57cf..b422ded1 100755 --- a/lib/setup/SetupClass.php +++ b/lib/setup/SetupClass.php @@ -417,8 +417,10 @@ class SetupFunctions $aFilenames = glob(CONST_Tiger_Data_Path.'/*.sql'); info('Found '.count($aFilenames).' SQL files in path '.CONST_Tiger_Data_Path); - if (empty($aFilenames)) return; - + if (empty($aFilenames)) { + warn('Tiger data import selected but no files found in path '.CONST_Tiger_Data_Path); + return; + } $sTemplate = file_get_contents(CONST_BasePath.'/sql/tiger_import_start.sql'); $sTemplate = $this->replaceSqlPatterns($sTemplate);