From ad8721e0f3c6925597b5a93b6c53e040f26b5fb3 Mon Sep 17 00:00:00 2001 From: Kim De Mey Date: Fri, 15 Mar 2024 09:05:33 +0100 Subject: [PATCH] Export errors for json-rpc clients (#218) Errors should get exported considering they are part of the json-rpc APIs. --- json_rpc/clients/httpclient.nim | 2 +- json_rpc/clients/socketclient.nim | 2 +- json_rpc/clients/websocketclient.nim | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/json_rpc/clients/httpclient.nim b/json_rpc/clients/httpclient.nim index ddd0bc5..d15a5e5 100644 --- a/json_rpc/clients/httpclient.nim +++ b/json_rpc/clients/httpclient.nim @@ -18,7 +18,7 @@ import ../private/jrpc_sys export - client, HttpClientFlag, HttpClientFlags + client, errors, HttpClientFlag, HttpClientFlags logScope: topics = "JSONRPC-HTTP-CLIENT" diff --git a/json_rpc/clients/socketclient.nim b/json_rpc/clients/socketclient.nim index 2454c04..67f41ab 100644 --- a/json_rpc/clients/socketclient.nim +++ b/json_rpc/clients/socketclient.nim @@ -16,7 +16,7 @@ import ../errors, ../private/jrpc_sys -export client +export client, errors logScope: topics = "JSONRPC-SOCKET-CLIENT" diff --git a/json_rpc/clients/websocketclient.nim b/json_rpc/clients/websocketclient.nim index 2d95960..faf5815 100644 --- a/json_rpc/clients/websocketclient.nim +++ b/json_rpc/clients/websocketclient.nim @@ -16,4 +16,5 @@ import export websocketclientimpl, - client + client, + errors