Index: branches/salvatoreingala/Gadgets/api/ApiGetGadgetPrefs.php |
— | — | @@ -49,7 +49,7 @@ |
50 | 50 | $userPrefs = $gadget->getPrefs(); |
51 | 51 | |
52 | 52 | if ( $userPrefs === null ) { |
53 | | - $this->dieUsage( 'An unexpected condition happened, please report this to the developers', 'unexpectederror' ); |
| 53 | + throw new MWException( __METHOD__ . ': $userPrefs should not be null.' ); |
54 | 54 | } |
55 | 55 | |
56 | 56 | //Add user preferences to preference description |