MOBILE-2795 debug: Show error message trace when debug is on

main
Pau Ferrer Ocaña 2019-01-07 12:42:56 +01:00
parent 409a9de4ea
commit 5520598e31
1 changed files with 3 additions and 0 deletions

View File

@ -1034,6 +1034,9 @@ export class CoreDomUtilsProvider {
if (error.backtrace) {
extraInfo += '<br><br>' + this.textUtils.replaceNewLines(this.textUtils.escapeHTML(error.backtrace), '<br>');
}
// tslint:disable-next-line
console.error(error);
}
// We received an object instead of a string. Search for common properties.