From 7fc84f6abaac95b4c67a8fed500e5971106609d8 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Mon, 2 Nov 2026 20:49:31 -1000 Subject: Name a missing Lua module in the error log --- custom/extensions/email-gravatar.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'custom/extensions/email-gravatar.lua') diff --git a/custom/extensions/email-gravatar.lua b/custom/extensions/email-gravatar.lua index 467deff..c89da79 100644 --- a/custom/extensions/email-gravatar.lua +++ b/custom/extensions/email-gravatar.lua @@ -13,7 +13,8 @@ -- openssl.digest, from . The reliable -- cross-platform install is LuaRocks, matched to the Lua version cgit is built -- against, and it needs the OpenSSL development headers present. Without it --- the filter draws no icons and leaves the names as they are. +-- the filter draws no icons, leaving the names as they are, and says so in the +-- error log. -- -- # Debian and Ubuntu -- sudo apt install luarocks libssl-dev @@ -33,6 +34,9 @@ -- SHA-256, the form Gravatar documents. local has_digest, digest = pcall(require, "openssl.digest") +if not has_digest then + io.stderr:write("[cgit] Unable to load openssl.digest, so no avatar icons are drawn\n") +end -- The size is in pixels and serves both as the image asked of the service and -- cgit 2.12.1