Yuya Nishihara  committed 1e18cfa

workbench: show detail of openRepository failure (refs #1632)

This changes to handle RepoError in the same manner as run.qtrun().

  • Participants
  • Parent commits 19d4942

Comments (0)

Files changed (1)

File tortoisehg/hgqt/

                 repo = thgrepo.repository(path=root)
                 return self.addRepoTab(repo, bundle)
-            except RepoError:
-                upath = hglib.tounicode(root)
+            except RepoError, e:
                 qtlib.WarningMsgBox(_('Failed to open repository'),
-                        _('%s is not a valid repository') % upath)
+                                    hglib.tounicode(str(e)), parent=self)
         return None
     def _findrepowidget(self, root):