[Rt-commit] r8181 - rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT
ruz at bestpractical.com
ruz at bestpractical.com
Tue Jul 17 06:37:37 EDT 2007
Author: ruz
Date: Tue Jul 17 06:37:37 2007
New Revision: 8181
Modified:
rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/Config.pm
Log:
* handle compilation and run-time errors in configs
Modified: rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/Config.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/Config.pm (original)
+++ rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/Config.pm Tue Jul 17 06:37:37 2007
@@ -284,6 +284,9 @@
};
if( $@ ) {
return 1 if $is_site && $@ =~ qr{^Can't locate \Q$args{File}};
+ if ( $is_site || $@ !~ qr{^Can't locate \Q$args{File}} ) {
+ die qq{Couldn't load RT config file $args{'File'}:\n\n$@};
+ }
my $username = getpwuid($>);
my $group = getgrgid($();
More information about the Rt-commit
mailing list