From f1e5aff3fbb47df89cfe2a867f4ca60fe2d955dd Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Fri, 31 Aug 2018 08:50:15 -0400 Subject: [PATCH] dont crash if ens contracts don't deploy --- lib/modules/ens/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/modules/ens/index.js b/lib/modules/ens/index.js index 23fa652e..8fbe6560 100644 --- a/lib/modules/ens/index.js +++ b/lib/modules/ens/index.js @@ -52,6 +52,12 @@ class ENS { }); } ], (err, results) => { + if (err) { + return cb(err); + } + if (!results[0] || !results[1] || !results[2]) { + return cb(__('Aborting ENS setup as some of the contracts did not deploy properly')); + } // result[0] => ENSRegistry; result[1] => FIFSRegistrar; result[2] => FIFSRegistrar let config = { env: self.env,