added an error message when strongswan.conf cannot be read
authorTobias Brunner <tobias@strongswan.org>
Mon, 19 May 2008 13:20:33 +0000 (13:20 -0000)
committerTobias Brunner <tobias@strongswan.org>
Mon, 19 May 2008 13:20:33 +0000 (13:20 -0000)
src/libstrongswan/settings.c

index 57325b5..025a980 100644 (file)
@@ -379,6 +379,7 @@ settings_t *settings_create(char *file)
                fd = fopen(file, "r");
                if (fd == NULL)
                {
+                       DBG1("'%s' does not exist or is not readable", file);
                        return &this->public;
                }
                fseek(fd, 0, SEEK_END);