From 384a3368514f8bc2eadec8878c1664d2afa43e9f Mon Sep 17 00:00:00 2001 From: Mercier Pierre-Olivier Date: Sun, 3 Nov 2013 00:06:36 +0100 Subject: [PATCH] croak instead of return --- process/files/send_git.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/process/files/send_git.pl b/process/files/send_git.pl index 7322d39..a2e5ee1 100644 --- a/process/files/send_git.pl +++ b/process/files/send_git.pl @@ -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();