From 6ad9c0dc5a8ea2258de921aad37630b5e8bb95eb Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Mon, 10 Sep 2018 17:08:09 +0100 Subject: [PATCH] Update error with or --- lib/modules/ens/register.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modules/ens/register.js b/lib/modules/ens/register.js index fdcf9abca..dd1a0d128 100644 --- a/lib/modules/ens/register.js +++ b/lib/modules/ens/register.js @@ -36,7 +36,7 @@ function registerSubDomain(ens, registrar, resolver, defaultAccount, subdomain, callback(null, transaction); }) .catch(err => { - logger.error(err.message); + logger.error(err.message || err); callback('Failed to register with error: ' + (err.message || err)); }); }