Commits

Steve Borho committed b9e4cfb

commit: Fix generic exception handler

Closes #1443

Comments (0)

Files changed (1)

tortoisehg/hgtk/commit.py

             cwd = os.getcwd()
             os.chdir(repo.root)
             self.hg_commit(files, finish)
-        except:
-            finish()
+        except Exception, e:
+            gdialog.Prompt(_('Commit failed'), hglib.toutf(e), self).run()
+            finish(1)
 
 
     def undo_clicked(self, toolbutton, data=None):