aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2017-06-24 16:54:12 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2017-06-24 16:54:12 -0700
commitb0c007c6048b687f3b4b1bfc9a489192e5e9f40e (patch)
tree2a7c6c721f1f7ead508a138d458830d0d5ccbc6d
parentAdd voters for the council-201706 election. (diff)
downloadelections-b0c007c6048b687f3b4b1bfc9a489192e5e9f40e.tar.gz
elections-b0c007c6048b687f3b4b1bfc9a489192e5e9f40e.tar.bz2
elections-b0c007c6048b687f3b4b1bfc9a489192e5e9f40e.zip
Votify: debug spam.
Use of uninitialized value in subroutine entry at /etc/elections/Votify.pm line 135. Votify::get_single_election_hashref("council-201706") called at /etc/elections/Votify.pm line 148 Votify::get_elections_hash() called at /etc/elections/Votify.pm line 153 Votify::get_open_elections_hash() called at /etc/elections/election-stats-count line 41 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rw-r--r--Votify.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/Votify.pm b/Votify.pm
index d53cfcb..d24b8cb 100644
--- a/Votify.pm
+++ b/Votify.pm
@@ -129,10 +129,10 @@ sub get_single_election_hashref {
return undef unless defined $election_dir;
my %election;
foreach my $fn (@REQUIRED_FILES){
- #print "Scan $fn\n";
+ print STDERR "Scan $fn\n";
my @filenames = (sprintf("%s/%s", "$basedir/$election_name", $fn), sprintf("%s/%s-%s", "$basedir/$election_name", $fn, $election_name));
- #print Dumper(@filenames);
- my $filename = abs_path(List::Util::first { -f $_ } @filenames);
+ print STDERR Dumper(@filenames);
+ my $filename = abs_path(List::Util::first { $_ && -f $_ } @filenames);
$election{"${fn}file"} = $filename;
};
#print Dumper(%election);