]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.c
cache.c: do not ignore errors from print_slot()
[ps-cgit] / cgit.c
diff --git a/cgit.c b/cgit.c
index 2036ceb0ee427fb37054033ecc21e74655104d06..ac882c34ef1ea9baa91cb874f0fb846abcf65824 100644 (file)
--- a/cgit.c
+++ b/cgit.c
@@ -380,7 +380,7 @@ int main(int argc, const char **argv)
        err = cache_process(ctx.cfg.cache_size, ctx.cfg.cache_root,
                            ctx.qry.raw, ttl, process_request, &ctx);
        if (err)
-               cache_log("[cgit] error %d - %s\n",
-                         err, strerror(err));
+               cgit_print_error(fmt("Error processing page: %s (%d)",
+                                    strerror(err), err));
        return err;
 }