Commits

Steve Borho committed 5c0009d

rename: fix error dialogs

  • Participants
  • Parent commits ec85da5
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgtk/rename.py

             commands.rename(repo.ui, repo, dlg.orig, new_name, **opts)
             toquit = True
         except (OSError, util.Abort, hglib.RepoError), inst:
-            dlg.error_dialog(None, _('rename error'), str(inst))
+            dialog.error_dialog(None, _('rename error'), str(inst))
             toquit = False
     finally:
         sys.stderr = saved
         textout = errors.getvalue() + repo.ui.popbuffer()
         errors.close()
         if len(textout) > 1:
-            dlg.error_dialog(None, _('rename error'), textout)
+            dialog.error_dialog(None, _('rename error'), textout)
         elif toquit:
             dlg.destroy()