diff options
author | Eric Wong <e@80x24.org> | 2021-09-11 00:19:16 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-09-11 00:24:15 +0000 |
commit | 0c2eaee968cb59ae60c10ce89b2c236fd9369830 (patch) | |
tree | b8b2d0579a4b4d292f774ae90a156c2e7951ef5c /lib/PublicInbox/Config.pm | |
parent | a0f0df6e66e6613805fa40c95b9758e4702e248a (diff) | |
download | public-inbox-0c2eaee968cb59ae60c10ce89b2c236fd9369830.tar.gz |
This should improve the users' chances of seeing errors in various git config files we use.
Diffstat (limited to 'lib/PublicInbox/Config.pm')
-rw-r--r-- | lib/PublicInbox/Config.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/Config.pm b/lib/PublicInbox/Config.pm index 74a1a6f5..ee5322fe 100644 --- a/lib/PublicInbox/Config.pm +++ b/lib/PublicInbox/Config.pm @@ -19,7 +19,7 @@ sub _array ($) { ref($_[0]) eq 'ARRAY' ? $_[0] : [ $_[0] ] } # returns key-value pairs of config directives in a hash # if keys may be multi-value, the value is an array ref containing all values sub new { - my ($class, $file) = @_; + my ($class, $file, $errfh) = @_; $file //= default_file(); my $self; if (ref($file) eq 'SCALAR') { # used by some tests @@ -27,7 +27,7 @@ sub new { $self = config_fh_parse($fh, "\n", '='); bless $self, $class; } else { - $self = git_config_dump($class, $file); + $self = git_config_dump($class, $file, $errfh); $self->{'-f'} = $file; } # caches |