Merge "API: Fix ApiMainTest::testExceptionErrors and use $wgShowDBErrorBacktrace"