fix error message that print undefined

This commit is contained in:
Jonathan Rainville 2018-10-25 15:20:29 -04:00
parent b85f8aff8c
commit ef2b4ea570
2 changed files with 5 additions and 6 deletions

View File

@ -1,7 +1,6 @@
require('colors');
let fs = require('./fs.js');
const date = require('date-and-time');
const constants = require('../constants');
const DATE_FORMAT = 'YYYY-MM-DD HH:mm:ss:SSS';
const LOG_REGEX = new RegExp(/\[(\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d:\d\d\d)\] (?:\[(\w*)\]:?)?\s?\s?(.*)/gmi);

View File

@ -538,8 +538,8 @@ class BlockchainConnector {
function(next) {
async.times(limit, function(n, eachCb) {
self.web3.eth.getBlock(from - n, returnTransactionObjects, function(err, block) {
if (err) {
self.logger.error(err);
if (err && err.message) {
// FIXME Returns an error because we are too low
return eachCb();
}
blocks.push(block);