[gitg] Improved error message when creation of signed tag object fails



commit e3f7c8c3bf1f3f903f7d0df470d3e33376e0e150
Author: Jesse van den Kieboom <jessevdk gnome org>
Date:   Sun Jul 5 19:39:22 2009 +0200

    Improved error message when creation of signed tag object fails

 gitg/gitg-branch-actions.c |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/gitg/gitg-branch-actions.c b/gitg/gitg-branch-actions.c
index f0d3754..4412db9 100644
--- a/gitg/gitg-branch-actions.c
+++ b/gitg/gitg-branch-actions.c
@@ -1457,10 +1457,21 @@ gitg_branch_actions_tag (GitgWindow *window, gchar const *sha1, gchar const *nam
 	                               sha1,
 	                               NULL))
 	{
+		gchar const *secondary;
+		
+		if (sign)
+		{
+			secondary = _("The tag object could not be successfully created. Please make sure you have a GPG key and the key is unlocked");
+		}
+		else
+		{
+			secondary = _("The tag object could not be successfully created");
+		}
+		
 		message_dialog (window,
 		                GTK_MESSAGE_ERROR,
 		                _("Failed to create tag"),
-		                _("The tag object could not be successfully created"),
+		                secondary,
 		                NULL);
 		return FALSE;
 	}



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