From f2337c65d08897c204e05071abe7cc979e4d02b8 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Thu, 15 Oct 2009 18:50:49 +0200 Subject: Slightly better error dialog on "Unable to book" as part of bug #436619 --- calendar/gui/itip-utils.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'calendar') diff --git a/calendar/gui/itip-utils.c b/calendar/gui/itip-utils.c index 38fcb46bb7..e9f7bb2d82 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; } -- cgit v1.2.3