https://bugzilla.wikimedia.org/show_bug.cgi?id=37082

       Web browser: ---
             Bug #: 37082
           Summary: Add the result to the log message of the module
                    "mediawiki.api"
           Product: MediaWiki
           Version: 1.20-git
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: easy
          Severity: enhancement
          Priority: Unprioritized
         Component: JavaScript
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---


On [1] we have a parameter "result" which is unused:
----
err: function( code, result ) {
        mw.log( 'mw.Api error: ' + code, 'debug' );
},
----

Woudn't be better to append the "result" to the log message? E.g.:
----
err: function( code, result ) {
        mw.log( 'mw.Api error: ' + code + '(' + result + ')', 'debug' );
},
----

[1]
https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=blob;f=resources/mediawiki.api/mediawiki.api.js;hb=HEAD#l27

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to