Skip to content

Commit

Permalink
Export errors for json-rpc clients (#218)
Browse files Browse the repository at this point in the history
Errors should get exported considering they are part of the
json-rpc APIs.
  • Loading branch information
kdeme authored Mar 15, 2024
1 parent a20ba20 commit ad8721e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion json_rpc/clients/httpclient.nim
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import
../private/jrpc_sys

export
client, HttpClientFlag, HttpClientFlags
client, errors, HttpClientFlag, HttpClientFlags

logScope:
topics = "JSONRPC-HTTP-CLIENT"
Expand Down
2 changes: 1 addition & 1 deletion json_rpc/clients/socketclient.nim
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import
../errors,
../private/jrpc_sys

export client
export client, errors

logScope:
topics = "JSONRPC-SOCKET-CLIENT"
Expand Down
3 changes: 2 additions & 1 deletion json_rpc/clients/websocketclient.nim
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ import

export
websocketclientimpl,
client
client,
errors

0 comments on commit ad8721e

Please sign in to comment.