error: Minor improvement to error dialog logging

This commit is contained in:
Cole Robinson 2013-06-13 09:23:21 -04:00
parent c3d54cbd20
commit 8804e59518
1 changed files with 3 additions and 3 deletions

View File

@ -70,12 +70,12 @@ class vmmErrorDialog(vmmGObject):
details = summary + "\n\n" + "".join(traceback.format_exc())
# Make sure we have consistent details for error dialogs
if (dialog_type == Gtk.MessageType.ERROR and not
details.count(summary)):
if (dialog_type == Gtk.MessageType.ERROR and not summary in details):
details = summary + "\n\n" + details
if debug:
logging.debug("dialog message: %s : %s", summary, details)
logging.debug("error dialog message:\nsummary=%s\ndetails=%s",
summary, details)
dialog = _errorDialog(parent=self.get_parent(),
flags=0,