Tidy up error messages

svn path=/trunk/; revision=5872
This commit is contained in:
Robert Ancell 2007-01-20 01:09:29 +00:00
parent 495d140e32
commit b83778b396

View file

@ -481,7 +481,7 @@ class View(ui.ViewFeedback):
try:
f = file(fileName, 'w')
except IOError, e:
self.game.application.ui.reportError(gettext.gettext('Unable to save PGN file ') + fileName, e.args[1])
self.game.application.ui.reportError('Unable to save PGN file %s' % fileName, e.args[1])
return
print 'Saving game ' + repr(self.game.name) + ' to ' + fileName
@ -709,7 +709,7 @@ class UI(gtkui.GtkUI):
try:
p = chess.pgn.PGN(path, 1)
except chess.pgn.Error, e:
self.reportError('Unable to open PGN file ' + path, e.description)
self.reportError('Unable to open PGN file %s' % path, e.description)
return
# Use the first game