mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-23 14:06:52 +00:00
Merge "Preserve more error details coming from parsoid."
This commit is contained in:
commit
16d0c4646e
|
@ -84,9 +84,9 @@ trait ApiParsoidTrait {
|
|||
if ( $ex instanceof LocalizedHttpException ) {
|
||||
$converter = new \MediaWiki\Message\Converter();
|
||||
$msg = $converter->convertMessageValue( $ex->getMessageValue() );
|
||||
$this->dieWithError( $msg );
|
||||
$this->dieWithError( $msg, null, $ex->getErrorData() );
|
||||
} else {
|
||||
$this->dieWithException( $ex );
|
||||
$this->dieWithException( $ex, [ 'data' => $ex->getErrorData() ] );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue