UsageException: Validate that $codestr is a non-empty string
authorBrad Jorsch <bjorsch@wikimedia.org>
Mon, 27 Jun 2016 23:31:56 +0000 (19:31 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Mon, 27 Jun 2016 23:31:56 +0000 (19:31 -0400)
commit27f652644ce64b86d5a8701e8010b3c61ae062ac
treebe7d578790e4dfabcdaa83f1b988333cf482305f
parentc292cfd90f1b9f2939b6bc1e19e15700a87a037c
UsageException: Validate that $codestr is a non-empty string

Current theory on T138585 is that something is passing in false, so
let's throw an InvalidArgumentException that should log a backtrace for
us.

Bug: T138585
Change-Id: Iba0dad424c56340b8bc73322bb1a7ae6d4de314a
includes/api/ApiMain.php