fix config file test due to toml-serialization changes
This commit is contained in:
parent
b098d9ea85
commit
a26bfab7e5
|
@ -149,13 +149,19 @@ proc readValue(r: var TomlReader,
|
|||
value = T r.parseAsString()
|
||||
|
||||
proc readValue(r: var TomlReader, value: var ValidIpAddress) =
|
||||
try:
|
||||
value = ValidIpAddress.init(r.parseAsString())
|
||||
except ValueError as ex:
|
||||
raise newException(SerializationError, ex.msg)
|
||||
|
||||
proc readValue(r: var TomlReader, value: var Port) =
|
||||
value = r.parseInt(int).Port
|
||||
|
||||
proc readValue(r: var TomlReader, value: var GraffitiBytes) =
|
||||
try:
|
||||
value = hexToByteArray[value.len](r.parseAsString())
|
||||
except ValueError as ex:
|
||||
raise newException(SerializationError, ex.msg)
|
||||
|
||||
proc readValue(r: var EnvvarReader,
|
||||
value: var (InputFile | InputDir | OutFile | OutDir | ValidatorKeyPath)) =
|
||||
|
|
Loading…
Reference in New Issue