Merge "Preserve more error details coming from parsoid."

This commit is contained in:
jenkins-bot 2024-03-28 08:25:55 +00:00 committed by Gerrit Code Review
commit 16d0c4646e

View file

@ -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() ] );
}
}