[grilo/mocking] net: Print warning when the dump directory can't be initialized
- From: Mathias Hasselmann <hasselmm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo/mocking] net: Print warning when the dump directory can't be initialized
- Date: Thu, 18 Oct 2012 22:06:15 +0000 (UTC)
commit f728469e231bcadb7831f5f42400ca5a8171c256
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]