gitweb: Use nonlocal jump instead of 'exit' in die_error
[gitweb.git] / gitweb / gitweb.perl
index 6cefb09b45e12ff2726321fd4b913d7d8ac79845..ed92dcac083d6644998ef68810409624abbbb417 100755 (executable)
@@ -972,7 +972,8 @@ sub evaluate_path_info {
        die_error(400, "Project needed");
 }
 $actions{$action}->();
-exit;
+DONE_GITWEB:
+1;
 
 ## ======================================================================
 ## action links
@@ -3432,7 +3433,7 @@ sub die_error {
        print "</div>\n";
 
        git_footer_html();
-       exit;
+       goto DONE_GITWEB;
 }
 
 ## ----------------------------------------------------------------------