mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-04 23:13:09 +00:00
chore: fix build
This commit is contained in:
parent
43771291a8
commit
dc040a542d
2
vendor/nim-serialization
vendored
2
vendor/nim-serialization
vendored
@ -1 +1 @@
|
||||
Subproject commit 12ada99c0c88a7ed4b45c7af0aebcce3ef7f926a
|
||||
Subproject commit 73d6108d9c7ad0a1283d1e361a3f86e6c676a305
|
||||
@ -11,13 +11,14 @@ license = "MIT or Apache License 2.0"
|
||||
### Dependencies
|
||||
requires "nim >= 2.2.4",
|
||||
"chronicles",
|
||||
"confutils",
|
||||
"confutils#e214b39",
|
||||
"chronos",
|
||||
"dnsdisc",
|
||||
"eth",
|
||||
"json_rpc",
|
||||
"libbacktrace",
|
||||
"nimcrypto",
|
||||
"serialization#73d6108",
|
||||
"stew",
|
||||
"stint",
|
||||
"metrics",
|
||||
|
||||
@ -98,8 +98,11 @@ proc readValue*[T](r: var EnvvarReader, value: var T) {.raises: [SerializationEr
|
||||
if reader != nil:
|
||||
try:
|
||||
reader(value, r)
|
||||
except IOError as e:
|
||||
raise newException(SerializationError, "Envvar reader IO error: " & e.msg)
|
||||
except IOError:
|
||||
raise newException(
|
||||
SerializationError,
|
||||
"Envvar reader IO error: " & getCurrentExceptionMsg()
|
||||
)
|
||||
discard r.key.pop()
|
||||
else:
|
||||
const typeName = typetraits.name(T)
|
||||
|
||||
@ -60,8 +60,6 @@ proc decodeFromJsonBytes*[T](
|
||||
RestJson.decode(
|
||||
string.fromBytes(data),
|
||||
T,
|
||||
requireAllFields = requireAllFields,
|
||||
allowUnknownFields = true,
|
||||
)
|
||||
)
|
||||
except SerializationError:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user