Skip to content
Snippets Groups Projects
Commit f4088e3d authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

[fix] Minor changes

parent 2f6f9ce9
No related branches found
No related tags found
No related merge requests found
...@@ -633,7 +633,8 @@ ...@@ -633,7 +633,8 @@
"PASSWORD_HELP": "Passphrase" "PASSWORD_HELP": "Passphrase"
}, },
"ERROR": { "ERROR": {
"BAD_PASSWORD": "Bad passphrase" "BAD_PASSWORD": "Bad passphrase",
"BAD_CHECKSUM": "Bad checksum"
} }
} }
}, },
......
...@@ -633,7 +633,8 @@ ...@@ -633,7 +633,8 @@
"PASSWORD_HELP": "Passphrase" "PASSWORD_HELP": "Passphrase"
}, },
"ERROR": { "ERROR": {
"BAD_PASSWORD": "Bad passphrase" "BAD_PASSWORD": "Bad passphrase",
"BAD_CHECKSUM": "Bad checksum"
} }
} }
}, },
......
...@@ -80,13 +80,7 @@ angular.module('cesium.platform', ['ngIdle', 'cesium.config', 'cesium.services'] ...@@ -80,13 +80,7 @@ angular.module('cesium.platform', ['ngIdle', 'cesium.config', 'cesium.services']
.factory('$exceptionHandler', function($log) { .factory('$exceptionHandler', function($log) {
'ngInject'; 'ngInject';
function stacktrace(f) {
return !f ? [] :
stacktrace(f.caller).concat([f.toString().split('(')[0].substring(9) + '(' + Array.prototype.slice.call(f.arguments).join(',') + ')']);
}
return function(exception, cause) { return function(exception, cause) {
//console.error(stacktrace(arguments.callee.caller));
if (cause) $log.error(exception, cause); if (cause) $log.error(exception, cause);
else $log.error(exception); else $log.error(exception);
}; };
......
...@@ -180,7 +180,7 @@ angular.module('cesium.currency.services', ['ngApi', 'cesium.bma.services']) ...@@ -180,7 +180,7 @@ angular.module('cesium.currency.services', ['ngApi', 'cesium.bma.services'])
block.cleanData(); // Remove unused content (arrays...) and keep items count block.cleanData(); // Remove unused content (arrays...) and keep items count
//console.debug('[currency] Received new block', block); //console.debug('[currency] Received new block', block);
console.debug('[currency] Received new block [' + block.number + '-' + block.hash + ']'); console.debug('[currency] Received new block {' + block.number + '-' + block.hash + '}');
data.currentBlock = block; data.currentBlock = block;
data.currentBlock.receivedAt = moment().utc().unix(); data.currentBlock.receivedAt = moment().utc().unix();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment