Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.1, 2.1.1, and 2.1.2

stable run: fix aborting on displaying translated exception strings

With Mercurial translated output, this caused a decoding error to
be thrown, so the whole application would abort, but displaying
only the original exception.

The fix works for me for a lookup error browsing the manifest of
an empty repository; I'm not sure how to induce other unhandled
errors, so this may be not enough.

Changeset 7af59a5772d2

Parent 4d6cf57994bf

by Wagner Bruna

Changes to one file · Browse files at 7af59a5772d2 Showing diff from parent 4d6cf57994bf Diff from another changeset...

 
438
439
440
441
 
442
443
444
 
438
439
440
 
441
442
443
444
@@ -438,7 +438,7 @@
  u'</b> %(arg1)s'])   opts['values'] = [str(evalue), evalue.hint]   dlg = ExceptionMsgBox(hglib.tounicode(str(evalue)), - errstr, opts, + hglib.tounicode(errstr), opts,   parent=self._mainapp.activeWindow())   elif etype is KeyboardInterrupt:   if qtlib.QuestionMsgBox(_('Keyboard interrupt'),