[balsa] Show specific error message when mkdir fails
- From: Peter Bloomfield <PeterB src gnome org>
- To: svn-commits-list gnome org
- Subject: [balsa] Show specific error message when mkdir fails
- Date: Sat, 25 Jul 2009 12:09:53 +0000 (UTC)
commit 51bbf1f4aa5a6ed57e84b2c9a29260adc6fedb5b
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Sat Jul 25 08:09:41 2009 -0400
Show specific error message when mkdir fails
ChangeLog | 5 +++++
libinit_balsa/assistant_helper.c | 7 ++++---
2 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 7f05a7c..0807953 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-07-25 Peter Bloomfield
+
+ * libinit_balsa/assistant_helper.c
+ (balsa_init_create_to_directory): show specific error message.
+
2009-07-23 Peter Bloomfield
Check for NULL InternetAddressList
diff --git a/libinit_balsa/assistant_helper.c b/libinit_balsa/assistant_helper.c
index ca7dd3a..91465e7 100644
--- a/libinit_balsa/assistant_helper.c
+++ b/libinit_balsa/assistant_helper.c
@@ -213,9 +213,10 @@ balsa_init_create_to_directory(const gchar * dir, gchar ** complaint)
if (stat(sofar, &sb) < 0) {
if (mkdir(sofar, S_IRUSR | S_IWUSR | S_IXUSR) < 0) {
(*complaint) =
- g_strdup_printf(_
- ("Couldn't create a directory: mkdir() failed on pathname \"%s\"."),
- sofar);
+ g_strdup_printf(_("Couldn't create a directory:"
+ " mkdir() failed on pathname \"%s\","
+ " with error \"%s\"."),
+ sofar, g_strerror(errno));
g_free(sofar);
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]