[grilo] net: Print warning when the dump directory can't be initialized
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo] net: Print warning when the dump directory can't be initialized
- Date: Mon, 22 Oct 2012 17:06:20 +0000 (UTC)
commit 0c83dc1ada265c0899e232e323637f843bdb24f5
Author: Mathias Hasselmann <mathias openismus com>
Date: Thu Oct 18 22:39:19 2012 +0200
net: Print warning when the dump directory can't be initialized
...so the user is aware dump won't take place.
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 *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]