From 56cc5b042a6f3a4d8887004f9541e8c7c9b618a5 Mon Sep 17 00:00:00 2001 From: Vasco Santos Date: Fri, 11 Sep 2020 10:02:56 +0200 Subject: [PATCH] chore: add consistent message error with other libp2p transports --- src/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index e0e1e387..6eba5477 100644 --- a/src/index.js +++ b/src/index.js @@ -116,7 +116,8 @@ class WebRTCStar { const onError = (err) => { if (!connected) { - log.error(err) + const msg = `connection error ${cOpts.host}:${cOpts.port}: ${err.message}` + log.error(msg) done(err) } }