Skip to content

Commit

Permalink
Item13023: Fix a typo
Browse files Browse the repository at this point in the history
And dump the actual configuration along with the bootstrap config.
  • Loading branch information
gac410 committed Sep 4, 2014
1 parent 27b13d1 commit a4737f2
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions lib/Foswiki/Plugins/TestBootstrapPlugin.pm
Expand Up @@ -225,7 +225,7 @@ sub _BOOTSTRAP {
}
}
if ($fatal) {
$msg .= <<EPITAPH;
$msg .= <<EPITAPH;
Unable to bootstrap configuration. LocalSite.cfg could not be loaded,
and Foswiki was unable to guess the locations of the following critical
directories: $fatal
Expand Down Expand Up @@ -256,7 +256,20 @@ BOOTS
require Data::Dumper;
$msg .= Data::Dumper::Dumper( \%boot_cfg );

return "<verbatim> $msg </verbatim>";
$msg .= "\nACTUAL CONFIGURATION:\n\n";

foreach my $key (
sort qw( DataDir ScriptDir ToolsDir PubDir
PubUrlPath ScriptUrlPath DetailedOS ScriptSuffix OS
DefaultUrlHost TemplateDir WorkingDir LocalesDir )
)
{

$msg .= "$key: $Foswiki::cfg{$key}\n";
}
$msg .= "{ScriptUrlPaths}{view}: $Foswiki::cfg{ScriptUrlPaths}{view}\n";

return "<verbatim>$msg</verbatim>";

}
1;
Expand Down

0 comments on commit a4737f2

Please sign in to comment.