-rw-r--r-- | cache.c | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -253,7 +253,12 @@ static int process_slot(struct cache_slot *slot) } } - print_slot(slot); + if ((err = print_slot(slot)) != 0) { + cache_log("[cgit] error printing cache %s: %s (%d)\n", + slot->cache_name, + strerror(err), + err); + } close_slot(slot); - return 0; + return err; } @@ -290,5 +295,10 @@ static int process_slot(struct cache_slot *slot) slot->cache_fd = slot->lock_fd; unlock_slot(slot, 1); - err = print_slot(slot); + if ((err = print_slot(slot)) != 0) { + cache_log("[cgit] error printing cache %s: %s (%d)\n", + slot->cache_name, + strerror(err), + err); + } close_slot(slot); return err; |