]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
master: Add suggestion to use "unlimited" for some service error messages
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Sat, 1 Feb 2025 20:09:11 +0000 (22:09 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 12 Feb 2025 10:34:16 +0000 (12:34 +0200)
src/master/master-settings.c

index 5db29c03dbe3f10e82187324f5961810b46d5dcc..263849f2d70d7b2d834be846e65bbd40c1c3d00b 100644 (file)
@@ -737,19 +737,22 @@ master_settings_ext_check(struct event *event, void *_set,
                }
                if (service->restart_request_count == 0) {
                        *error_r = t_strdup_printf("service(%s): "
-                               "restart_request_count must be higher than 0",
+                               "restart_request_count must be higher than 0 "
+                               "(did you mean \"unlimited\"?)",
                                service->name);
                        return FALSE;
                }
                if (service->idle_kill_interval == 0) {
                        *error_r = t_strdup_printf("service(%s): "
-                               "idle_kill_interval must be higher than 0",
+                               "idle_kill_interval must be higher than 0 "
+                               "(did you mean \"unlimited\"?)",
                                service->name);
                        return FALSE;
                }
                if (service->vsz_limit < 1024*1024) {
                        *error_r = t_strdup_printf("service(%s): "
-                               "vsz_limit is too low", service->name);
+                               "vsz_limit is too low "
+                               "(did you mean \"unlimited\"?)", service->name);
                        return FALSE;
                }