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,15 +35,15 @@ class Vyper {
if (!contractFiles || !contractFiles.length) {
return cb();
}
self.logger.info(__("compiling Vyper contracts") + "...");
const vyper = shelljs.which('vyper');
if (!vyper) {
self.logger.warn(__('%s is not installed on your machine', '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,
function (file, fileCb) {