From: Jakub Narebski <hidden> Date: 2016-06-15 22:48:11
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.
Signed-off-by: Jakub Narebski <redacted>
---
This is fallout from my work on [split] "Gitweb output caching" series.
Before I used `die $@ if $@;' in t/t9503/test_cache_interface.pl, tests
failed for no discernable reason...
So I think the same should be done for the gitweb config file.
gitweb/gitweb.perl | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
@@ -556,6 +556,8 @@ if (-e $GITWEB_CONFIG) {our$GITWEB_CONFIG_SYSTEM=$ENV{'GITWEB_CONFIG_SYSTEM'}||"++GITWEB_CONFIG_SYSTEM++";do$GITWEB_CONFIG_SYSTEMif-e$GITWEB_CONFIG_SYSTEM;}+# die if there are errors parsing config file+die$@if$@;# Get loadavg of system, to compare against $maxload.# Currently it requires '/proc/loadavg' present to get loadavg;
I'd sign-off that, I've probably run into it a couple of times myself.
- John 'Warthog9' Hawley
On 02/07/2010 01:40 AM, Jakub Narebski wrote:
quoted hunk
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.
Signed-off-by: Jakub Narebski <redacted>
---
This is fallout from my work on [split] "Gitweb output caching" series.
Before I used `die $@ if $@;' in t/t9503/test_cache_interface.pl, tests
failed for no discernable reason...
So I think the same should be done for the gitweb config file.
gitweb/gitweb.perl | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
@@ -556,6 +556,8 @@ if (-e $GITWEB_CONFIG) {our$GITWEB_CONFIG_SYSTEM=$ENV{'GITWEB_CONFIG_SYSTEM'}||"++GITWEB_CONFIG_SYSTEM++";do$GITWEB_CONFIG_SYSTEMif-e$GITWEB_CONFIG_SYSTEM;}+# die if there are errors parsing config file+die$@if$@;# Get loadavg of system, to compare against $maxload.# Currently it requires '/proc/loadavg' present to get loadavg;--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
From: Jakub Narebski <hidden> Date: 2016-06-15 22:48:12
On Sun, 7 Feb 2010, J.H. wrote:
I'd sign-off that, I've probably run into it a couple of times myself.
- John 'Warthog9' Hawley
I think you meant ACK, not sign-off...
On 02/07/2010 01:40 AM, Jakub Narebski wrote:
quoted
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.
Signed-off-by: Jakub Narebski <redacted>
---
This is fallout from my work on [split] "Gitweb output caching" series.
Before I used `die $@ if $@;' in t/t9503/test_cache_interface.pl, tests
failed for no discernable reason...
So I think the same should be done for the gitweb config file.
From: Jakub Narebski <hidden> Date: 2016-06-15 22:48:14
Ping!
I didn't want to push for it before 1.7.0, but now that 1.7.0
is out...
On Sun, 7 Feb 2010, Jakub Narebski wrote:
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.
Signed-off-by: Jakub Narebski <redacted>
---
This is fallout from my work on [split] "Gitweb output caching" series.
Before I used `die $@ if $@;' in t/t9503/test_cache_interface.pl, tests
failed for no discernable reason...
So I think the same should be done for the gitweb config file.
gitweb/gitweb.perl | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
@@ -556,6 +556,8 @@ if (-e $GITWEB_CONFIG) {our$GITWEB_CONFIG_SYSTEM=$ENV{'GITWEB_CONFIG_SYSTEM'}||"++GITWEB_CONFIG_SYSTEM++";do$GITWEB_CONFIG_SYSTEMif-e$GITWEB_CONFIG_SYSTEM;}+# die if there are errors parsing config file+die$@if$@;# Get loadavg of system, to compare against $maxload.# Currently it requires '/proc/loadavg' present to get loadavg;