Skip to content

Commit

Permalink
Improved messaging for .\config\app-settings.php not found error. Add…
Browse files Browse the repository at this point in the history
…ed the full request url to the log message string.
  • Loading branch information
rotexdegba committed Oct 2, 2017
1 parent 9dc645b commit 33b488f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion public/index-dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,11 @@ function s3MVC_PrependAction2ActionMethodName($action_method_name) {
END;
echo $app_settings_file_missing_error_page;

$current_uri = \Slim\Http\Request::createFromEnvironment(new \Slim\Http\Environment(s3MVC_GetSuperGlobal('server')))->getUri()->__toString();

// Write full message to log via error_log(...)
// http://php.net/manual/en/function.error-log.php
$log_message = "ERROR: `$app_settings_file_path_rel` not found."
$log_message = "ERROR: [$current_uri] `$app_settings_file_path_rel` not found."
. " Please copy `$app_settings_dist_file_path_rel` to `$app_settings_file_path_rel` and"
. " configure `$app_settings_file_path_rel` for your application's current environment.";

Expand Down

0 comments on commit 33b488f

Please sign in to comment.