Merge pull request #1348 from mtmail/checkmodulepresence-to-raise-exception

checkModulePresence now raises exception instead of its callers
This commit is contained in:
Sarah Hoffmann
2019-04-14 11:25:52 +02:00
committed by GitHub
4 changed files with 9 additions and 30 deletions

View File

@@ -84,9 +84,7 @@ if ($aCMDResult['setup-db'] || $aCMDResult['all']) {
}
// Try accessing the C module, so we know early if something is wrong
if (!checkModulePresence()) {
fail('error loading nominatim.so module');
}
checkModulePresence(); // raises exception on failure
if ($aCMDResult['import-data'] || $aCMDResult['all']) {
$bDidSomething = true;