From fb1df125f50f37a9e4618f3174090ed5dd153bf3 Mon Sep 17 00:00:00 2001 From: Jazz Turner-Baggs <473256+jazzz@users.noreply.github.com> Date: Tue, 17 Feb 2026 16:19:53 -0800 Subject: [PATCH] Add errorType --- src/chat/client.nim | 2 +- src/chat/types.nim | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/chat/client.nim b/src/chat/client.nim index 89861d5..48c0bd6 100644 --- a/src/chat/client.nim +++ b/src/chat/client.nim @@ -73,7 +73,7 @@ type ChatClient* = ref object # Constructors ################################################# -proc newClient*(ds: WakuClient, ephemeral: bool = true, installation_name: string = "default"): Result[ChatClient, string] = +proc newClient*(ds: WakuClient, ephemeral: bool = true, installation_name: string = "default"): Result[ChatClient, ErrorType] = ## Creates new instance of a `ChatClient` with a given `WakuConfig`. ## A new installation is created if no saved installation with `installation_name` is found diff --git a/src/chat/types.nim b/src/chat/types.nim index d5989fd..3c7544d 100644 --- a/src/chat/types.nim +++ b/src/chat/types.nim @@ -1,2 +1,3 @@ type MessageId* = string type Content* = seq[byte] +type ErrorType* = string