croak instead of return
This commit is contained in:
parent
5c3309d042
commit
384a336851
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ sub process
|
|||
|
||||
my $path = $args->{param}{path} // "/srv/git/repositories/$year/$project_id/$login.git";
|
||||
|
||||
return "$path is not a valid path." if (! -d $path);
|
||||
croak "$path is not a valid path." if (! -d $path);
|
||||
|
||||
my $tempdir = tempdir();
|
||||
|
||||
|
|
Reference in a new issue