Print the values of invalid parameters in error messages

This commit is contained in:
Zahary Karadjov 2021-05-17 19:52:35 +03:00
parent bb6cbf6e0d
commit 5f2f882151
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
1 changed files with 3 additions and 3 deletions

View File

@ -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: