[evolution] Slightly better error dialog on "Unable to book"



commit f2337c65d08897c204e05071abe7cc979e4d02b8
Author: Milan Crha <mcrha redhat com>
Date:   Thu Oct 15 18:50:49 2009 +0200

    Slightly better error dialog on "Unable to book"
    
    as part of bug #436619

 calendar/gui/itip-utils.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/calendar/gui/itip-utils.c b/calendar/gui/itip-utils.c
index 38fcb46..e9f7bb2 100644
--- a/calendar/gui/itip-utils.c
+++ b/calendar/gui/itip-utils.c
@@ -825,8 +825,13 @@ comp_server_send (ECalComponentItipMethod method, ECalComponent *comp, ECal *cli
 	if (!e_cal_send_objects (client, top_level, users, &returned_icalcomp, &error)) {
 		/* FIXME Really need a book problem status code */
 		if (error->code != E_CALENDAR_STATUS_OK) {
-			/* FIXME Better error message */
-			e_notice (NULL, GTK_MESSAGE_ERROR, "Unable to book");
+			if (error->code == E_CALENDAR_STATUS_OBJECT_ID_ALREADY_EXISTS) {
+				e_notice (NULL, GTK_MESSAGE_ERROR, _("Unable to book a resource, the new event collides with some other."));
+			} else {
+				gchar *msg = g_strconcat (_("Unable to book a resource, error: "), error->message, NULL);
+				e_notice (NULL, GTK_MESSAGE_ERROR, msg);
+				g_free (msg);
+			}
 
 			retval = FALSE;
 		}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]