fix(@embark/deploy-tracker): continue if getting block fails

Makes using the --fork option of ganache work even in mainnet
This commit is contained in:
Jonathan Rainville 2019-08-19 16:11:16 -04:00 committed by Iuri Matias
parent a4dbf92078
commit 0fe070c6d5
1 changed files with 6 additions and 1 deletions

View File

@ -86,7 +86,12 @@ class DeployTracker {
getBlock(0, (err) => {
if (err) {
// Retry with block 1 (Block 0 fails with Ganache-cli using the --fork option)
return getBlock(1, callback);
return getBlock(1, (err) => {
if (err) {
self.logger.error(__('Error getting block data. The deploy-tracker will not work'), err);
}
callback();
});
}
callback();
});