Error logging fix
This commit is contained in:
+3
-3
@@ -116,7 +116,7 @@ module.exports = {
|
||||
});
|
||||
} else {
|
||||
client.command([{method:'getblockhash', parameters: [height]}], function(err, response){
|
||||
if(err){console.log('Error: ', err); onlyConsole.trace(err)}
|
||||
if(err){console.log('Error: ', err); }
|
||||
else{
|
||||
if(response[0].name == 'RpcError'){
|
||||
return cb('There was an error. Check your console.');
|
||||
@@ -135,7 +135,7 @@ module.exports = {
|
||||
});
|
||||
} else {
|
||||
client.command([{method:'getblock', parameters: [hash]}], function(err, response){
|
||||
if(err){console.log('Error: ', err); onlyConsole.trace(err)}
|
||||
if(err){console.log('Error: ', err); }
|
||||
else{
|
||||
if(response[0].name == 'RpcError'){
|
||||
return cb('There was an error. Check your console.');
|
||||
@@ -154,7 +154,7 @@ module.exports = {
|
||||
});
|
||||
} else {
|
||||
client.command([{method:'getrawtransaction', parameters: [hash, 1]}], function(err, response){
|
||||
if(err){console.log('Error: ', err); onlyConsole.trace(err)}
|
||||
if(err){console.log('Error: ', err); }
|
||||
else{
|
||||
if(response[0].name == 'RpcError'){
|
||||
return cb('There was an error. Check your console.');
|
||||
|
||||
Reference in New Issue
Block a user