Bug 1595991 - [autoconfig] Shorten console output for HTML responses. r+a=jorgk
authorBen Bucksch <ben.bucksch@beonex.com>
Wed, 13 Nov 2019 09:52:34 +0100
changeset 37279 89c74493e695121bf9c83bb29252328bdbedf633
parent 37278 873e752b714ee7040425d7cdb7bbb9d8d3df6306
child 37280 8d03e8719bd7868586632ab3ce82e1041fff90fa
push id395
push userclokep@gmail.com
push dateMon, 02 Dec 2019 19:38:57 +0000
bugs1595991
Bug 1595991 - [autoconfig] Shorten console output for HTML responses. r+a=jorgk
mail/components/accountcreation/content/readFromXML.js
--- a/mail/components/accountcreation/content/readFromXML.js
+++ b/mail/components/accountcreation/content/readFromXML.js
@@ -33,17 +33,19 @@ function readFromXML(clientConfigXML) {
     return value === undefined ? [] : value;
   }
   var exception;
   if (
     typeof clientConfigXML != "object" ||
     !("clientConfig" in clientConfigXML) ||
     !("emailProvider" in clientConfigXML.clientConfig)
   ) {
-    dump("client config xml = " + JSON.stringify(clientConfigXML) + "\n");
+    dump(
+      `client config xml = ${JSON.stringify(clientConfigXML).substr(0, 50)} \n`
+    );
     let stringBundle = getStringBundle(
       "chrome://messenger/locale/accountCreationModel.properties"
     );
     throw stringBundle.GetStringFromName("no_emailProvider.error");
   }
   var xml = clientConfigXML.clientConfig.emailProvider;
 
   var d = new AccountConfig();