From 20211720d6dbe1a0c201834a0b637a956932fcde Mon Sep 17 00:00:00 2001 From: Tucker Beck Date: Wed, 14 Sep 2022 10:24:26 -0700 Subject: [PATCH 1/2] Added detailed error output when configuration errors are encountered --- jobbergate-cli/jobbergate_cli/config.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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", ) From 6ec362bea7bd6683151888d49b50c7eb6baea714 Mon Sep 17 00:00:00 2001 From: Tucker Beck Date: Thu, 22 Sep 2022 16:48:20 -0700 Subject: [PATCH 2/2] Added item to changelog --- jobbergate-cli/CHANGELOG.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/jobbergate-cli/CHANGELOG.rst b/jobbergate-cli/CHANGELOG.rst index c6b543c3..b448756f 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.4 -- 2022-09-12 -------------------