New error if project doesn't exists
This commit is contained in:
parent
c5a1bf8917
commit
bdef5a3c69
@ -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 $!;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user