From f4088e3d327d04c49d38d0ae3df5ab157567084c Mon Sep 17 00:00:00 2001 From: blavenie <benoit.lavenier@e-is.pro> Date: Mon, 1 Apr 2019 19:32:23 +0200 Subject: [PATCH] [fix] Minor changes --- www/i18n/locale-en-GB.json | 3 ++- www/i18n/locale-en.json | 3 ++- www/js/platform.js | 6 ------ www/js/services/currency-services.js | 2 +- 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/www/i18n/locale-en-GB.json b/www/i18n/locale-en-GB.json index 309b3a774..ec6b819c9 100644 --- a/www/i18n/locale-en-GB.json +++ b/www/i18n/locale-en-GB.json @@ -633,7 +633,8 @@ "PASSWORD_HELP": "Passphrase" }, "ERROR": { - "BAD_PASSWORD": "Bad passphrase" + "BAD_PASSWORD": "Bad passphrase", + "BAD_CHECKSUM": "Bad checksum" } } }, diff --git a/www/i18n/locale-en.json b/www/i18n/locale-en.json index 2b2319460..0b6740cbe 100644 --- a/www/i18n/locale-en.json +++ b/www/i18n/locale-en.json @@ -633,7 +633,8 @@ "PASSWORD_HELP": "Passphrase" }, "ERROR": { - "BAD_PASSWORD": "Bad passphrase" + "BAD_PASSWORD": "Bad passphrase", + "BAD_CHECKSUM": "Bad checksum" } } }, diff --git a/www/js/platform.js b/www/js/platform.js index 52fa3d0a7..5429f9a5a 100644 --- a/www/js/platform.js +++ b/www/js/platform.js @@ -80,13 +80,7 @@ angular.module('cesium.platform', ['ngIdle', 'cesium.config', 'cesium.services'] .factory('$exceptionHandler', function($log) { '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) { - //console.error(stacktrace(arguments.callee.caller)); if (cause) $log.error(exception, cause); else $log.error(exception); }; diff --git a/www/js/services/currency-services.js b/www/js/services/currency-services.js index 92c0c3e1d..1b3888305 100644 --- a/www/js/services/currency-services.js +++ b/www/js/services/currency-services.js @@ -180,7 +180,7 @@ angular.module('cesium.currency.services', ['ngApi', 'cesium.bma.services']) block.cleanData(); // Remove unused content (arrays...) and keep items count //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.receivedAt = moment().utc().unix(); -- GitLab