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,