mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-14 14:54:06 +00:00
fix error message for non-existing database
This commit is contained in:
@@ -61,6 +61,6 @@ async def get_status(engine: AsyncEngine) -> StatusResult:
|
||||
status.data_updated = await _get_database_date(conn)
|
||||
status.database_version = await _get_database_version(conn)
|
||||
except asyncpg.PostgresError:
|
||||
return StatusResult(700, 'No database')
|
||||
return StatusResult(700, 'Database connection failed')
|
||||
|
||||
return status
|
||||
|
||||
Reference in New Issue
Block a user