From 74c288d7ae6f4a0183f240eece554335d5325bd1 Mon Sep 17 00:00:00 2001 From: alrevuelta Date: Thu, 22 Jun 2023 11:27:47 +0200 Subject: [PATCH] Fix comments --- waku/v2/node/builder.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/waku/v2/node/builder.nim b/waku/v2/node/builder.nim index e9aa4f5d74..95c8016444 100644 --- a/waku/v2/node/builder.nim +++ b/waku/v2/node/builder.nim @@ -180,8 +180,8 @@ proc build*(builder: WakuNodeBuilder): Result[WakuNode, string] = peerStoreCapacity = builder.peerStorageCapacity, services = @[Service(getAutonatService(rng))], ) - except: - return err("failed to create switch") + except CatchableError: + return err("failed to create switch: " & getCurrentExceptionMsg()) let peerManager = PeerManager.new( switch = switch,