Browse files

add more detail to error message

this error normally happens due to some permission issue on the log
file, but we weren't printing the actual cause, so it was confusing
  • Loading branch information...
sitaramc committed Dec 14, 2012
1 parent 8e3ee2f commit 20484845786fedc48ea3b78f0b9375a346485d94
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/lib/Gitolite/
@@ -277,7 +277,7 @@ sub gl_log {
my $fh;
logger_plus_stderr( "errors found before logging could be setup", "$msg" ) if not $ENV{GL_LOGFILE};
open my $lfh, ">>", $ENV{GL_LOGFILE}
- or logger_plus_stderr( "errors found before logfile could be created", "$msg" );
+ or logger_plus_stderr( "errors found but logfile could not be created", "$ENV{GL_LOGFILE}: $!", "$msg" );
print $lfh "$ts\t$tid\t$msg\n";
close $lfh;

0 comments on commit 2048484

Please sign in to comment.