]> Lady’s Gitweb - Gitweb/commit
gitweb: Die if there are parsing errors in config file
authorJakub Narebski <redacted>
Sun, 14 Feb 2010 21:46:28 +0000 (22:46 +0100)
committerLady <redacted>
Mon, 6 Apr 2026 04:50:39 +0000 (00:50 -0400)
commitb8b18ce7a8f6bf9d18d9584cc5089a03a009334e7447f518d6ad1fc8cfe75463
tree4037ba52610fae737f0799d5a1f26410f054d996c3681bed41e9fdb9e7fce9fd
parent5656c6049256fdc2782ea42c603df638297856e690f1a3246ec07e8c8997bb77
gitweb: Die if there are parsing errors in config file

Otherwise the errors can propagate, and show in damnest places, and
you would spend your time chasing ghosts instead of debugging real
problem (yes, it is from personal experience).

This follows (parts of) advice in `perldoc -f do` documentation.

This required restructoring code a bit, so we die only if we are reading
(executing) config file.  As a side effect $GITWEB_CONFIG_SYSTEM is always
available, even when we use $GITWEB_CONFIG.

Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.180451 seconds and 4 git commands to generate.