Merge "Send 500 http status code, instead of 200, for DBConnectionErrors"
This commit is contained in:
commit
2d71bf187d
1 changed files with 1 additions and 1 deletions
|
|
@ -47,10 +47,10 @@ class MWExceptionRenderer {
|
|||
} elseif ( self::isCommandLine() ) {
|
||||
self::printError( self::getText( $e ) );
|
||||
} elseif ( $mode === self::AS_PRETTY ) {
|
||||
self::statusHeader( 500 );
|
||||
if ( $e instanceof DBConnectionError ) {
|
||||
self::reportOutageHTML( $e );
|
||||
} else {
|
||||
self::statusHeader( 500 );
|
||||
self::header( "Content-Type: $wgMimeType; charset=utf-8" );
|
||||
self::reportHTML( $e );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue