From: Timo Sirainen Date: Sun, 5 Oct 2025 19:51:22 +0000 (+0300) Subject: lib: module_dir_try_load_missing() - Add the wanted modules to be loaded to the error... X-Git-Tag: 2.4.2~364 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ffb491099a0e12af9ef916643eacc8a513922d5;p=thirdparty%2Fdovecot%2Fcore.git lib: module_dir_try_load_missing() - Add the wanted modules to be loaded to the error string This helps to understand what modules need to be explicitly loaded inside a chroot. --- diff --git a/src/lib/module-dir.c b/src/lib/module-dir.c index 4cc990550a..369450193d 100644 --- a/src/lib/module-dir.c +++ b/src/lib/module-dir.c @@ -502,6 +502,10 @@ int module_dir_try_load_missing(struct module **modules, module_names_fix(module_names), set, error_r); } T_END_PASS_STR_IF(ret < 0, error_r); + if (ret < 0 && module_names != NULL) { + *error_r = t_strdup_printf("%s (trying to load modules: %s)", + *error_r, t_strarray_join(module_names, " ")); + } return ret; }