Archived
1
0

New error if project doesn't exists

This commit is contained in:
Mercier Pierre-Olivier 2013-11-13 01:15:01 +01:00
parent c5a1bf8917
commit bdef5a3c69

View File

@ -169,6 +169,7 @@ sub grades_new_bonus
croak "No project_id given" if (! $project_id); croak "No project_id given" if (! $project_id);
die "No such project $project_id in $year" if (! -d "$basedir/$year/$project_id/");
if (! -e "$basedir/$year/$project_id/traces/") { if (! -e "$basedir/$year/$project_id/traces/") {
mkdir "$basedir/$year/$project_id/traces/" or die $!; mkdir "$basedir/$year/$project_id/traces/" or die $!;
} }