Skip to content

Commit

Permalink
LocalSettings | throw RuntimeException, ConfigException is not yet av…
Browse files Browse the repository at this point in the history
…ailable
  • Loading branch information
macbre committed Jun 13, 2018
1 parent 9415f04 commit fc47d3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LocalSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
$wgWikiaDatacenter = getenv( 'WIKIA_DATACENTER' );

if ( empty( $wgWikiaDatacenter ) ) {
throw new ConfigException( 'Datacenter not configured in /etc/environment.' );
throw new RuntimeException( 'Datacenter not configured in WIKIA_DATACENTER env variable.' );
}

/**
Expand All @@ -44,7 +44,7 @@

// CONFIG_REVISION: remove $wgWikiaDatacenter and $wgWikiaEnvironment from the global scope and only use it to load configuration
if ( empty( $wgWikiaEnvironment ) ) {
throw new ConfigException( 'Environment not configured in /etc/environment.' );
throw new RuntimeException( 'Environment not configured in WIKIA_ENVIRONMENT env variable.' );
}

/**
Expand Down

0 comments on commit fc47d3d

Please sign in to comment.