diff options
author | Mathias Hasselmann <mathias@openismus.com> | 2012-10-18 22:39:19 +0200 |
---|---|---|
committer | Juan A. Suarez Romero <jasuarez@igalia.com> | 2012-10-22 16:53:41 +0000 |
commit | 0c83dc1ada265c0899e232e323637f843bdb24f5 (patch) | |
tree | 4918e25435e7f4a9b06a55c343d740f1a8bcdeaf /libs | |
parent | cfd03645f0fe06101cc058ac037306a00c893e43 (diff) | |
download | grilo-0c83dc1ada265c0899e232e323637f843bdb24f5.tar.gz |
net: Print warning when the dump directory can't be initialized
...so the user is aware dump won't take place.
Diffstat (limited to 'libs')
-rw-r--r-- | libs/net/grl-net-private.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/net/grl-net-private.c b/libs/net/grl-net-private.c index 4669461..c3f5e3b 100644 --- a/libs/net/grl-net-private.c +++ b/libs/net/grl-net-private.c @@ -100,8 +100,11 @@ init_dump_directory () { capture_dir = g_getenv ("GRL_WEB_CAPTURE_DIR"); - if (capture_dir && g_mkdir_with_parents (capture_dir, 0700)) + if (capture_dir && g_mkdir_with_parents (capture_dir, 0700)) { + GRL_WARNING ("Could not create capture directory \"%s\": %s", + capture_dir, g_strerror (errno)); capture_dir = NULL; + } } static char * |