ResourceLoader: Stop passing around errors as /**/-comments
authorBartosz Dziewoński <matma.rex@gmail.com>
Tue, 11 Nov 2014 20:00:17 +0000 (21:00 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Tue, 9 Dec 2014 19:19:24 +0000 (19:19 +0000)
commit1a4b07fdfae2f75bd1687177a2f51440a8e4e4c8
treeacb374629716e1dbf5b8fde0d72f159652d706d6
parentaa00a3e8384a87430f82739507e09bb74c6b40ec
ResourceLoader: Stop passing around errors as /**/-comments

They are prone to being stripped by CSS and JS minification and can't
be used for non-CSS non-JS responses, like images.

We've already been keeping some state related to errors in the
$hasErrors member variable, let's go all the way and replace it with
$errors array, which tracks all errors accumulated during current
respond() call. When processing completes, all errors are added to the
response, if possible.

Change-Id: I6643f010174cb1f17780622e8a63db03cffe19e1
includes/resourceloader/ResourceLoader.php