diff --git a/includes/Setup.php b/includes/Setup.php
index f3ddda9bcb7..8e819fd42d0 100644
--- a/includes/Setup.php
+++ b/includes/Setup.php
@@ -129,15 +129,17 @@ require_once MW_INSTALL_PATH . '/includes/Defines.php';
// Assert that composer dependencies were successfully loaded
if ( !interface_exists( LoggerInterface::class ) ) {
$message = (
- 'MediaWiki requires the PSR-3 logging ' .
+ 'Error: MediaWiki requires the PSR-3 logging ' .
"library to be present. This library is not embedded directly in MediaWiki's " .
"git repository and must be installed separately by the end user.\n\n" .
'Please see the instructions for installing libraries on mediawiki.org ' .
'for help on installing the required components.'
);
+ http_response_code( 500 );
echo $message;
- trigger_error( $message, E_USER_ERROR );
+ error_log( $message );
+ exit( 1 );
}
// Deprecated global variable for backwards-compatibility.