Make WordPress Core

Changeset 882 in tests


Ignore:
Timestamp:
07/08/2012 11:10:15 AM (13 years ago)
Author:
nbachiyski
Message:

Add an error message in case the config file is missing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bootstrap.php

    r876 r882  
    2121global $wpdb, $current_site, $current_blog, $wp_rewrite, $shortcode_tags, $wp;
    2222
     23if ( !is_readable( $config_file_path ) ) {
     24    die( "ERROR: wp-test-config.php is missing! Please use wp-test-config-sample.php to create a config file.\n" );
     25}
    2326require_once $config_file_path;
    2427
Note: See TracChangeset for help on using the changeset viewer.