resourceloader: Report problematic modules in only=styles as well
authorTimo Tijhof <krinklemail@gmail.com>
Sun, 4 May 2014 14:46:16 +0000 (16:46 +0200)
committerKrinkle <krinklemail@gmail.com>
Mon, 5 May 2014 22:37:44 +0000 (22:37 +0000)
commitaae8314279576b9638623dbf31d652c52d93ce07
tree6f1cbbaa4e01127937be8f4a0a8382a65c61e561
parentd54472bc174fd5672cdbd4a3437ba3448e44e9d5
resourceloader: Report problematic modules in only=styles as well

Similar to how we do with other exceptions that we don't log on
the server but want a client to be able to debug, report modules
that were not included in the response.

Especially when debugging a load.php?only=styles request that
contains lots of different modules., there was no way of knowing
certain modules were excluded (e.g. because they aren't
registered), other than to try and remove them from the request
one by one until you're left with non-zero modules in the request
and an empty string as response body.

This change prepends a comment like the following to the response.

/*
Problematic modules: {
"foo": "missing"
}
*/

Bug: 64826
Change-Id: If5136c60ff7168dac5d6cdebd487824767c0ec16
includes/resourceloader/ResourceLoader.php