From: Timo Sirainen Date: Mon, 12 Oct 2009 20:01:53 +0000 (-0400) Subject: doveconf: Improved "config not found" error. X-Git-Tag: 2.0.alpha1~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=066e593acca8eef0f2a33aeeb3ddcbe757457a1f;p=thirdparty%2Fdovecot%2Fcore.git doveconf: Improved "config not found" error. --HG-- branch : HEAD --- diff --git a/src/config/doveconf.c b/src/config/doveconf.c index 798ade0b59..d9062c3003 100644 --- a/src/config/doveconf.c +++ b/src/config/doveconf.c @@ -277,8 +277,10 @@ int main(int argc, char *argv[]) master_service_init_finish(master_service); if ((ret = config_parse_file(config_path, FALSE, &error)) == 0 && - access(EXAMPLE_CONFIG_DIR, X_OK) == 0) - i_fatal("%s (example config in "EXAMPLE_CONFIG_DIR"/)", error); + access(EXAMPLE_CONFIG_DIR, X_OK) == 0) { + i_fatal("%s (copy example configs from "EXAMPLE_CONFIG_DIR"/)", + error); + } if (ret <= 0) i_fatal("%s", error);