diff options
context:
space:
mode:
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Log scan lock failures that are not contention
Diffstat (limited to '')
-rw-r--r--source/shared.c5
1 file changed, 3 insertions, 2 deletions
diff --git a/source/shared.c b/source/shared.c
index d5ff7c4..48d587d 100644
--- a/source/shared.c
+++ b/source/shared.c
@@ -514,8 +514,9 @@ void cgit_prepare_repo_env(struct cgit_repo *repo)
for (i = 0; i < ARRAY_SIZE(vars); i++)
if (vars[i].value && setenv(vars[i].name, vars[i].value, 1))
fprintf(stderr,
- "cgit warning: failed to set env: %s=%s\n",
- vars[i].name, vars[i].value);
+ "[cgit] Error setting env %s=%s: %s (%d)\n",
+ vars[i].name, vars[i].value,
+ strerror(errno), errno);
}
int cgit_read_first_line(const char *path, char **buf, size_t *size)