]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveconf: Improved "config not found" error.
authorTimo Sirainen <tss@iki.fi>
Mon, 12 Oct 2009 20:01:53 +0000 (16:01 -0400)
committerTimo Sirainen <tss@iki.fi>
Mon, 12 Oct 2009 20:01:53 +0000 (16:01 -0400)
--HG--
branch : HEAD

src/config/doveconf.c

index 798ade0b5947440e9819e3f195352f286659c1f3..d9062c3003ae018bb2a3517b1ff646858cf02604 100644 (file)
@@ -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);