Bug 927387 - Make xpc::SystemErrorReporter() JS exception fprintf()s not split the error across two lines; r=bholley
authorEd Morley <emorley@mozilla.com>
Wed, 16 Oct 2013 16:18:24 +0100
changeset 164781 6233dd77e3f82c05eff3cb01eac00df8d3a44c05
parent 164780 d0139a74ac0356b78b455bfe224e2b2035c412fe
child 164782 173a666f3b70b116c3ee774ac19a064d716688c1
push id3066
push userakeybl@mozilla.com
push dateMon, 09 Dec 2013 19:58:46 +0000
treeherdermozilla-beta@a31a0dce83aa [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbholley
bugs927387
milestone27.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 927387 - Make xpc::SystemErrorReporter() JS exception fprintf()s not split the error across two lines; r=bholley
js/xpconnect/src/nsXPConnect.cpp
--- a/js/xpconnect/src/nsXPConnect.cpp
+++ b/js/xpconnect/src/nsXPConnect.cpp
@@ -252,18 +252,17 @@ xpc::SystemErrorReporter(JSContext *cx, 
               uclinebuf ? nsDependentString(uclinebuf) : EmptyString(),
               rep->lineno, column, rep->flags,
               "system javascript");
         if (NS_SUCCEEDED(rv))
             consoleService->LogMessage(errorObject);
     }
 
     if (nsContentUtils::DOMWindowDumpEnabled()) {
-        fprintf(stderr, "System JS : %s %s:%d\n"
-                "                     %s\n",
+        fprintf(stderr, "System JS : %s %s:%d - %s\n",
                 JSREPORT_IS_WARNING(rep->flags) ? "WARNING" : "ERROR",
                 rep->filename, rep->lineno,
                 message ? message : "<no message>");
     }
 
 }
 
 NS_EXPORT_(void)