Skip to content

Commit

Permalink
Improve error message when Wikipedia importance file is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
mtmail committed Dec 6, 2023
1 parent 3c32c03 commit 1c1447e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nominatim/clicmd/refresh.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def run(self, args: NominatimArgs) -> int: #pylint: disable=too-many-branches, t
LOG.warning('Import secondary importance raster data from %s', args.project_dir)
if refresh.import_secondary_importance(args.config.get_libpq_dsn(),
args.project_dir) > 0:
LOG.fatal('FATAL: Cannot update sendary importance raster data')
LOG.fatal('FATAL: Cannot update secondary importance raster data')
return 1

if args.functions:
Expand All @@ -141,10 +141,10 @@ def run(self, args: NominatimArgs) -> int: #pylint: disable=too-many-branches, t
if args.wiki_data:
data_path = Path(args.config.WIKIPEDIA_DATA_PATH
or args.project_dir)
LOG.warning('Import wikipdia article importance from %s', data_path)
LOG.warning('Import wikipedia article importance from %s', data_path)
if refresh.import_wikipedia_articles(args.config.get_libpq_dsn(),
data_path) > 0:
LOG.fatal('FATAL: Wikipedia importance dump file not found')
LOG.fatal('FATAL: Wikipedia importance file not found in %s', data_path)
return 1

# Attention: importance MUST come after wiki data import.
Expand Down

0 comments on commit 1c1447e

Please sign in to comment.