-rw-r--r-- | cache.c | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -254,5 +254,10 @@ 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; } @@ -291,3 +296,8 @@ static int process_slot(struct cache_slot *slot) 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); |