From b29a7dbc8fcef7ffb5ecb50f84b99d38d4c14b8b Mon Sep 17 00:00:00 2001 From: Steven Schubiger Date: Mon, 16 Sep 2013 20:37:04 +0200 Subject: Use quotes in option processing error messages --- server.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server.cgi') 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; -- cgit v1.2.3