diff options
author | Steven Schubiger <stsc@refcnt.org> | 2013-09-16 20:37:04 +0200 |
---|---|---|
committer | Steven Schubiger <stsc@refcnt.org> | 2013-09-16 20:37:04 +0200 |
commit | b29a7dbc8fcef7ffb5ecb50f84b99d38d4c14b8b (patch) | |
tree | 399ba64b6b45cad36d206f5543bedfd4644a53f3 /server.cgi | |
parent | 61b4c8dcf0479a510b856370b6964a61d7b6cab4 (diff) | |
download | distdns-b29a7dbc8fcef7ffb5ecb50f84b99d38d4c14b8b.tar.gz distdns-b29a7dbc8fcef7ffb5ecb50f84b99d38d4c14b8b.tar.bz2 |
Use quotes in option processing error messages
Diffstat (limited to 'server.cgi')
-rwxr-xr-x | server.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |