Merge pull request #4 from embark-framework/bug_fix/no-exit

Add options arg and do not exit on error
This commit is contained in:
Iuri Matias 2018-09-15 09:36:05 -04:00 committed by GitHub
commit 2ad9a015fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@ const Compiler = require("./lib/Compiler");
module.exports = (embark) => {
embark.registerCompiler('.sol', compileSolc);
function compileSolc(contractFiles, cb) {
function compileSolc(contractFiles, options, cb) {
if(!contractFiles || !contractFiles.length) {
return cb();
}

View File

@ -35,9 +35,9 @@ function compileSolc(embark, contractFiles, cb) {
const solc = shelljs.which('solc');
if (!solc) {
logger.warn('solc is not installed on your machine');
logger.error('solc is not installed on your machine');
logger.info('You can install it by following the instructions on: http://solidity.readthedocs.io/en/latest/installing-solidity.html');
process.exit();
return cb('Compiler not installed');
}
logger.info("compiling solidity contracts with command line solc...");

View File

@ -12,7 +12,7 @@
"plugin",
"contracts",
"ethereum",
"embark"
"embark"
],
"author": "Richard Ramos",
"license": "ISC",