Skip to content

Commit

Permalink
feat(#1127): raise startup app error from es connection error
Browse files Browse the repository at this point in the history
  • Loading branch information
frascuchon committed Feb 14, 2022
1 parent cfb5e7d commit 60df22c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/rubrix/server/server.py
Expand Up @@ -101,11 +101,10 @@ async def configure_elasticsearch():
raise ConfigError(
f"Your Elasticsearch endpoint at {settings.obfuscated_elasticsearch()} "
"is not available or not responding.\n"
"Please make sure your Elasticsearch instance is launched and correctly running and "
"Please make sure your Elasticsearch instance is launched and correctly running and\n"
"you have the necessary access permissions. "
"Once you have verified this, restart the Rubrix server.\n"
f"Error detail: [{error}]"
)
) from error


def configure_app_security(app: FastAPI):
Expand Down

0 comments on commit 60df22c

Please sign in to comment.