put compiling message only after checking for binary

This commit is contained in:
Iuri Matias 2018-05-27 08:00:18 -04:00
parent c97b0332b7
commit 2d67061fe3
1 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,6 @@ class Vyper {
if (!contractFiles || !contractFiles.length) {
return cb();
}
self.logger.info(__("compiling Vyper contracts") + "...");
const vyper = shelljs.which('vyper');
if (!vyper) {
@ -43,6 +42,7 @@ class Vyper {
self.logger.info(__('You can install it by visiting: %s', 'https://vyper.readthedocs.io/en/latest/installing-vyper.html'));
return cb();
}
self.logger.info(__("compiling Vyper contracts") + "...");
const compiled_object = {};
async.each(contractFiles,