Index: trunk/phase3/includes/api/ApiEditPage.php |
— | — | @@ -347,7 +347,11 @@ |
348 | 348 | $this->dieUsageMsg( $errors[0] ); // TODO: Add new errors to message map |
349 | 349 | break; |
350 | 350 | default: |
351 | | - $this->dieUsageMsg( array( 'unknownerror', $status->value ) ); |
| 351 | + if ( is_string( $status->value ) && strlen( $status->value ) ) { |
| 352 | + $this->dieUsage( "An unknown return value was returned by Editpage. The code returned was \"{$status->value}\"" , $status->value ); |
| 353 | + } else { |
| 354 | + $this->dieUsageMsg( array( 'unknownerror', $status->value ) ); |
| 355 | + } |
352 | 356 | } |
353 | 357 | $apiResult->addValue( null, $this->getModuleName(), $r ); |
354 | 358 | } |