From b2f690b6f6d668ba71e1517fdf56d9ca550a6c1b Mon Sep 17 00:00:00 2001 From: Al Date: Tue, 15 Sep 2015 13:21:11 -0400 Subject: [PATCH] [api] Error logging if modules can't be found --- src/libpostal.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libpostal.c b/src/libpostal.c index c8366a68..3cc9870b 100644 --- a/src/libpostal.c +++ b/src/libpostal.c @@ -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; }