[api] Error logging if modules can't be found
This commit is contained in:
@@ -739,14 +739,17 @@ char **expand_address(char *input, normalize_options_t options, uint64_t *n) {
|
||||
|
||||
bool libpostal_setup(void) {
|
||||
if (!transliteration_module_setup(DEFAULT_TRANSLITERATION_PATH)) {
|
||||
log_error("Error loading transliteration module at %s\n", DEFAULT_TRANSLITERATION_PATH);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!numex_module_setup(DEFAULT_NUMEX_PATH)) {
|
||||
log_error("Error loading numex module\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!address_dictionary_module_setup()) {
|
||||
log_error("Error loading dictionary module\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user