summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dispatcher/nm-dispatcher.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/dispatcher/nm-dispatcher.c b/dispatcher/nm-dispatcher.c
index 6f49b67eec..4d9d47b3c6 100644
--- a/dispatcher/nm-dispatcher.c
+++ b/dispatcher/nm-dispatcher.c
@@ -597,8 +597,10 @@ _find_scripts (Request *request, GHashTable *scripts, const char *base, const ch
dirname = g_build_filename (base, "dispatcher.d", subdir, NULL);
if (!(dir = g_dir_open (dirname, 0, &error))) {
- _LOG_R_W (request, "find-scripts: Failed to open dispatcher directory '%s': %s",
- dirname, error->message);
+ if (!g_error_matches (error, G_FILE_ERROR, G_FILE_ERROR_NOENT)) {
+ _LOG_R_W (request, "find-scripts: Failed to open dispatcher directory '%s': %s",
+ dirname, error->message);
+ }
g_error_free (error);
return;
}