mirror of
https://github.com/waku-org/nwaku.git
synced 2025-02-11 06:26:43 +00:00
* on_chain/group_manager: use .async: (raises:[Exception]). * bump nim-dnsdisc * update nim-chronos to the latest state * chat2.nim: catch any possible exception when stopping * chat2bridge.nim: make it to compile after vendor bump * ValidIpAddress (deprecated) -> IpAddress * vendor/nim-libp2p additional bump * libwaku: adapt to vendor bump * testlib/wakunode.nim: adapt to vendor bump (ValidIpAddress -> IpAddress) * waku_node: avoid throwing any exception from stop*(node: WakuNode) * test_confutils_envvar.nim: ValidIpAddress -> IpAddress * test_jsonrpc_store: capture exception * test_rln*: handling exceptions * adaptation to make test_rln_* to work properly * signature enhancement of group_manager methods
18 lines
357 B
Nim
18 lines
357 B
Nim
|
|
import
|
|
std/json
|
|
import
|
|
./json_base_event
|
|
|
|
type JsonErrorEvent* = ref object of JsonEvent
|
|
message*: string
|
|
|
|
proc new*(T: type JsonErrorEvent,
|
|
message: string): T =
|
|
|
|
return JsonErrorEvent(
|
|
eventType: "error",
|
|
message: message)
|
|
|
|
method `$`*(jsonError: JsonErrorEvent): string {.raises: [].}=
|
|
$( %* jsonError ) |