mirror of https://github.com/embarklabs/embark.git
fixing small stuff
This commit is contained in:
parent
2a61b2251c
commit
3d70028cc5
|
@ -60,7 +60,6 @@ Plugin.prototype.hasContext = function(context) {
|
||||||
|
|
||||||
Plugin.prototype.loadPlugin = function() {
|
Plugin.prototype.loadPlugin = function() {
|
||||||
if (!this.isContextValid()) {
|
if (!this.isContextValid()) {
|
||||||
console.log(this.acceptedContext);
|
|
||||||
this.logger.warn(__('Plugin {{name}} can only be loaded in the context of "{{contextes}}"', {name: this.name, contextes: this.acceptedContext.join(', ')}));
|
this.logger.warn(__('Plugin {{name}} can only be loaded in the context of "{{contextes}}"', {name: this.name, contextes: this.acceptedContext.join(', ')}));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@ class SolcProcess extends ProcessWrapper {
|
||||||
return {contents: fs.readFileSync(path.join('./node_modules/', filename)).toString()};
|
return {contents: fs.readFileSync(path.join('./node_modules/', filename)).toString()};
|
||||||
}
|
}
|
||||||
if (fs.existsSync(path.join(constants.httpContractsDirectory, filename))) {
|
if (fs.existsSync(path.join(constants.httpContractsDirectory, filename))) {
|
||||||
return {contents: fs.readFileSync(path.join('./.embark/contracts', filename)).toString()};
|
return {contents: fs.readFileSync(path.join(constants.httpContractsDirectory, filename)).toString()};
|
||||||
}
|
}
|
||||||
return {error: 'File not found'};
|
return {error: 'File not found'};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue