API: Better handle UsageException from the printer itself
authorBrad Jorsch <bjorsch@wikimedia.org>
Mon, 20 Apr 2015 16:09:24 +0000 (12:09 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Tue, 21 Apr 2015 14:03:50 +0000 (10:03 -0400)
commitf9c7383de9e19c95e41fa4e136fd8c02c29781a7
treecbc4ab42bf59ba19862c2efc3fcd367482c08815
parentdb6a9636f1aa75e7cfea364ce83169f53a73c326
API: Better handle UsageException from the printer itself

Try falling back to use the printer without any of its parameters in
case one of them is what's failing.

Change-Id: I2611550109de4219bf1cc43333d038753e9eb87c
includes/api/ApiFormatBase.php
includes/api/ApiMain.php