diff --git a/includes/ApiVisualEditorEdit.php b/includes/ApiVisualEditorEdit.php index 21f2fab6f8..582b38ce0c 100644 --- a/includes/ApiVisualEditorEdit.php +++ b/includes/ApiVisualEditorEdit.php @@ -364,6 +364,7 @@ class ApiVisualEditorEdit extends ApiBase { $this->dieWithError( 'apierror-pagecannotexist' ); } '@phan-var Title $title'; + $this->getErrorFormatter()->setContextTitle( $title ); $parserParams = []; if ( isset( $params['oldid'] ) ) {