##// END OF EJS Templates
crecord: add mechanism for error reporting...
Laurent Charignon -
r25556:40f0e9e5 default
parent child Browse files
Show More
@@ -511,6 +511,7 b' class curseschunkselector(object):'
511 511
512 512 self.ui = ui
513 513
514 self.errorstr = None
514 515 # list of all chunks
515 516 self.chunklist = []
516 517 for h in headerlist:
@@ -976,6 +977,12 b' class curseschunkselector(object):'
976 977
977 978 # print out the status lines at the top
978 979 try:
980 if self.errorstr is not None:
981 printstring(self.statuswin, self.errorstr, pairname='legend')
982 printstring(self.statuswin, 'Press any key to continue',
983 pairname='legend')
984 self.statuswin.refresh()
985 return
979 986 printstring(self.statuswin,
980 987 "SELECT CHUNKS: (j/k/up/dn/pgup/pgdn) move cursor; "
981 988 "(space/A) toggle hunk/all; (e)dit hunk;",
@@ -1601,6 +1608,9 b' are you sure you want to review/edit and'
1601 1608 self.updatescreen()
1602 1609 try:
1603 1610 keypressed = self.statuswin.getkey()
1611 if self.errorstr is not None:
1612 self.errorstr = None
1613 continue
1604 1614 except curses.error:
1605 1615 keypressed = "foobar"
1606 1616 if self.handlekeypressed(keypressed):
General Comments 0
You need to be logged in to leave comments. Login now