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:
commit
2ad9a015fc
2
index.js
2
index.js
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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...");
|
||||
|
|
Loading…
Reference in New Issue