diff --git a/jobbergate-cli/CHANGELOG.rst b/jobbergate-cli/CHANGELOG.rst index 96ff9b9e..97950b3a 100644 --- a/jobbergate-cli/CHANGELOG.rst +++ b/jobbergate-cli/CHANGELOG.rst @@ -6,6 +6,7 @@ This file keeps track of all notable changes to jobbergate-cli Unreleased ---------- +- Added error details to configuration error report 3.2.5-alpha.0 -- 2022-09-15 --------------------------- diff --git a/jobbergate-cli/jobbergate_cli/config.py b/jobbergate-cli/jobbergate_cli/config.py index 6dfa995e..7250943e 100644 --- a/jobbergate-cli/jobbergate_cli/config.py +++ b/jobbergate-cli/jobbergate_cli/config.py @@ -102,12 +102,16 @@ def build_settings(*args, **kwargs): """ try: return Settings(*args, **kwargs) - except ValidationError: + except ValidationError as err: terminal_message( conjoin( "A configuration error was detected.", "", f"[yellow]Please contact [bold]{OV_CONTACT}[/bold] for support and trouble-shooting[/yellow]", + "", + "Details:", + "", + f"[red]{err}[/red]", ), subject="Configuration Error", )