From 5520598e31a6a69204635ab3fc10fa81c1385466 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Mon, 7 Jan 2019 12:42:56 +0100 Subject: [PATCH] MOBILE-2795 debug: Show error message trace when debug is on --- src/providers/utils/dom.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/providers/utils/dom.ts b/src/providers/utils/dom.ts index faf948769..f08e51cb0 100644 --- a/src/providers/utils/dom.ts +++ b/src/providers/utils/dom.ts @@ -1034,6 +1034,9 @@ export class CoreDomUtilsProvider { if (error.backtrace) { extraInfo += '

' + this.textUtils.replaceNewLines(this.textUtils.escapeHTML(error.backtrace), '
'); } + + // tslint:disable-next-line + console.error(error); } // We received an object instead of a string. Search for common properties.