From 5f2f882151fee87471514bb74c1311856c636594 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Mon, 17 May 2021 19:52:35 +0300 Subject: [PATCH] Print the values of invalid parameters in error messages --- confutils.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/confutils.nim b/confutils.nim index cb14b56..d20d46e 100644 --- a/confutils.nim +++ b/confutils.nim @@ -812,9 +812,9 @@ proc load*(Configuration: type, fieldSetters[setterIdx][1](confAddr[], some(cmdLineVal)) inc fieldCounters[setterIdx] except: - fail("Error while processing the '", - fgOption, fieldSetters[setterIdx][0], resetStyle, - "' parameter: " & + fail("Error while processing the ", + fgOption, fieldSetters[setterIdx][0], + "=", cmdLineVal.string, resetStyle, " parameter: ", getCurrentExceptionMsg()) when hasCompletions: