[kupfer] browser: Improve accelerator action error messages



commit 15f987bc85d11120ebfca21e0618999ad08a68ce
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Thu Sep 10 04:48:08 2009 +0200

    browser: Improve accelerator action error messages

 kupfer/browser.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/kupfer/browser.py b/kupfer/browser.py
index 5bf2f8e..432b05c 100644
--- a/kupfer/browser.py
+++ b/kupfer/browser.py
@@ -858,7 +858,7 @@ class Interface (gobject.GObject):
 				action = accels[accel]
 				action_method = getattr(self, action, None)
 				if not action_method:
-					print "Error: no action", action
+					pretty.print_error(__name__, "Action invalid '%s'" % action)
 				else:
 					action_method()
 				return True



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