registration: Improve duplicate config setting exception
authorKunal Mehta <legoktm@member.fsf.org>
Tue, 15 May 2018 17:26:43 +0000 (10:26 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Tue, 15 May 2018 17:32:22 +0000 (10:32 -0700)
commit5490b1270a0a7447f28d2407736fc3c1deb41d44
tree624f58cf2a057c0a97ddd7cab2233f54723e5101
parentf87db68a3e7495aa791ad7c666300882523de54a
registration: Improve duplicate config setting exception

We don't keep track of what set a specific global, so at least mention
the name of the extension that is setting a duplicate for easier
debugging.

Also, fix the case where if the first extension to be loaded was setting
a core setting, it would not throw an exception since config was being
processed before the rest of extension.json. Now we process config after
all core settings, going only before attributes.

Bug: T194319
Change-Id: I4fd96e7d167cf0652ee3e8e66167c86f2b91b992
includes/registration/ExtensionProcessor.php