Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Commit

Permalink
Fix lack of errors when compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
nbanmp committed Apr 12, 2019
1 parent 530034f commit 22badef
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions compat/truffle-compile/index.js
Expand Up @@ -270,7 +270,9 @@ compile.all = function(options, callback) {
if (err) return callback(err);

options.paths = files;
compile.with_dependencies(options, callback, true);
compile.with_dependencies(options, callback, true).catch(e => {
return callback(e);
});
});
};

Expand All @@ -293,7 +295,9 @@ compile.necessary = function(options, callback) {
}

options.paths = updated;
compile.with_dependencies(options, callback, false);
compile.with_dependencies(options, callback, false).catch(e => {
return callback(e);
});
});
};

Expand Down

0 comments on commit 22badef

Please sign in to comment.