Update error with or

This commit is contained in:
Anthony Laibe 2018-09-10 17:08:09 +01:00
parent 613921169a
commit 6ad9c0dc5a
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ function registerSubDomain(ens, registrar, resolver, defaultAccount, subdomain,
callback(null, transaction); callback(null, transaction);
}) })
.catch(err => { .catch(err => {
logger.error(err.message); logger.error(err.message || err);
callback('Failed to register with error: ' + (err.message || err)); callback('Failed to register with error: ' + (err.message || err));
}); });
} }