summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xclient.pl4
-rwxr-xr-xserver.cgi4
2 files changed, 4 insertions, 4 deletions
diff --git a/client.pl b/client.pl
index c83694c..0563c5c 100755
--- a/client.pl
+++ b/client.pl
@@ -61,13 +61,13 @@ my $get_config_opts = sub
{
my ($section, $options) = @_;
- _die "Section $section missing in $conf_file\n" unless exists $config->{$section};
+ _die "Section '$section' missing in $conf_file\n" unless exists $config->{$section};
my %options;
@options{@$options} = @{$config->{$section}}{@$options};
foreach my $option (@$options) {
- _die "Option $option not set in $conf_file\n" unless defined $options{$option} && length $options{$option};
+ _die "Option '$option' not set in $conf_file\n" unless defined $options{$option} && length $options{$option};
}
return @options{@$options};
diff --git a/server.cgi b/server.cgi
index e581a87..f9f8579 100755
--- a/server.cgi
+++ b/server.cgi
@@ -62,7 +62,7 @@ my $config = Config::Tiny->new;
my $section = 'path';
-die "Section $section missing in $conf_file\n" unless exists $config->{$section};
+die "Section '$section' missing in $conf_file\n" unless exists $config->{$section};
my @options = qw(json_file session_file);
@@ -70,7 +70,7 @@ my %options;
@options{@options} = @{$config->{$section}}{@options};
foreach my $option (@options) {
- die "Option $option not set in $conf_file\n" unless defined $options{$option} && length $options{$option};
+ die "Option '$option' not set in $conf_file\n" unless defined $options{$option} && length $options{$option};
}
my ($json_file, $session_file) = map rel2abs($options{$_}, $Bin), @options;