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))
|
fieldSetters[setterIdx][1](confAddr[], some(cmdLineVal))
|
||||||
inc fieldCounters[setterIdx]
|
inc fieldCounters[setterIdx]
|
||||||
except:
|
except:
|
||||||
fail("Error while processing the '",
|
fail("Error while processing the ",
|
||||||
fgOption, fieldSetters[setterIdx][0], resetStyle,
|
fgOption, fieldSetters[setterIdx][0],
|
||||||
"' parameter: " &
|
"=", cmdLineVal.string, resetStyle, " parameter: ",
|
||||||
getCurrentExceptionMsg())
|
getCurrentExceptionMsg())
|
||||||
|
|
||||||
when hasCompletions:
|
when hasCompletions:
|
||||||
|
|
Loading…
Reference in New Issue