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

       Web browser: ---
             Bug #: 38127
           Summary: Make file-not-found failures easier to detect in
                    ResourceLoader.
           Product: MediaWiki
           Version: 1.17
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: ResourceLoader
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---


If one creates a module with files that don't exist (or better yet, remove
files in a module and forget to update the definition) - and the module can
even be loaded on all pages. Then nothing will be visible.

* No console logs (whether with or without debug enabled)
* No PHP exceptions

The only thing shown:
* look up the load.php request in the browser debugger and see the exception in
a javascript comment about file not found. And here it also shows the call to
mw.loader.state({'foo':'missing'});

But since it is loaded with load() and not using() there is no other visible
failure.

I'm note sure if throwing an exception on page views is wise, but it should at
least make unit tests fail. One way or another.

-- 
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