mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-23 03:59:18 +00:00
Adding error messages
This commit is contained in:
parent
38e6a9571d
commit
03483052ea
@ -30,6 +30,7 @@ exports.serve = function(ipc, host, port, ws){
|
|||||||
try {
|
try {
|
||||||
jsonO = JSON.parse(resBody);
|
jsonO = JSON.parse(resBody);
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
|
console.log(__("Cannot parse node response"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,7 +18,10 @@ class ConsoleListener {
|
|||||||
|
|
||||||
_updateContractList(){
|
_updateContractList(){
|
||||||
this.events.request("contracts:list", (_err, contractsList) => {
|
this.events.request("contracts:list", (_err, contractsList) => {
|
||||||
if(_err) return;
|
if(_err) {
|
||||||
|
this.logger.error(__("no contracts found"));
|
||||||
|
return;
|
||||||
|
}
|
||||||
contractsList.forEach(contract => {
|
contractsList.forEach(contract => {
|
||||||
let address = contract.deployedAddress.toLowerCase();
|
let address = contract.deployedAddress.toLowerCase();
|
||||||
if(!this.addressToContract[address]){
|
if(!this.addressToContract[address]){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user