Print the values of invalid parameters in error messages
This commit is contained in:
parent
bb6cbf6e0d
commit
5f2f882151
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue