Display warnings on process return
This commit is contained in:
parent
0e92592d17
commit
4e35cabf62
2 changed files with 5 additions and 3 deletions
|
@ -215,7 +215,7 @@ sub grades_new_bonus
|
|||
if (-e "$basedir/$year/$project_id/traces/bonus/$login.xml") {
|
||||
open my $xml, "<", "$basedir/$year/$project_id/traces/bonus/$login.xml" or die $!;
|
||||
binmode $xml;
|
||||
$trace = Trace->new($xml);
|
||||
$trace = Trace->new(join '', <$xml>);
|
||||
close $xml;
|
||||
}
|
||||
elsif ($delete) {
|
||||
|
@ -242,7 +242,7 @@ sub grades_new_bonus
|
|||
close $xml;
|
||||
}
|
||||
else {
|
||||
log WARN, "Invalid login $line, line skiped";
|
||||
warn "Invalid login $line, line skiped";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue