Archived
1
0
Fork 0

Typo in API/Projects.pm

This commit is contained in:
Mercier Pierre-Olivier 2013-10-21 18:44:30 +02:00
parent 8e3d6e5464
commit 279b9ea07e
3 changed files with 5 additions and 13 deletions

View file

@ -27,11 +27,7 @@ sub process
my $year = shift @args // LDAP::get_year;
# Project existing?
if (! -d "$basedir/$year/$project_id")
{
log ERROR, "Unable to find $project_id in $year";
return "Unable to find $project_id in $year\n";
}
croak "Unable to find $project_id in $year" if (! -d "$basedir/$year/$project_id");
my $grade = Grading->new();