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)); }); }