From bb569aa48489a9447a165f47c4ce91d9f4a4cb7a Mon Sep 17 00:00:00 2001 From: marc tobias Date: Fri, 6 Mar 2020 17:52:46 +0100 Subject: [PATCH] print warning if no Tiger files found --- lib/setup/SetupClass.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); -- 2.39.5