Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
improve error message in config.c
author
Alex Riesen
<raa.lkml@gmail.com>
Wed, 29 Apr 2009 21:27:54 +0000
(23:27 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 30 Apr 2009 01:37:58 +0000
(18:37 -0700)
Show errno if opening a lockfile fails.
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
config.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
d1c8c0c
)
diff --git
a/config.c
b/config.c
index 563a91594dd7f0a801ade8b7ac4587aad481679e..f76a78311e50310c02ebb30e3fc8b211ee41e562 100644
(file)
--- a/
config.c
+++ b/
config.c
@@
-1001,7
+1001,7
@@
int git_config_set_multivar(const char* key, const char* value,
lock = xcalloc(sizeof(struct lock_file), 1);
fd = hold_lock_file_for_update(lock, config_filename, 0);
if (fd < 0) {
lock = xcalloc(sizeof(struct lock_file), 1);
fd = hold_lock_file_for_update(lock, config_filename, 0);
if (fd < 0) {
- error("could not lock config file %s
", config_filename
);
+ error("could not lock config file %s
: %s", config_filename, strerror(errno)
);
free(store.key);
ret = -1;
goto out_free;
free(store.key);
ret = -1;
goto out_free;