##// 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 self.ui = ui
512 self.ui = ui
513
513
514 self.errorstr = None
514 # list of all chunks
515 # list of all chunks
515 self.chunklist = []
516 self.chunklist = []
516 for h in headerlist:
517 for h in headerlist:
@@ -976,6 +977,12 b' class curseschunkselector(object):'
976
977
977 # print out the status lines at the top
978 # print out the status lines at the top
978 try:
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 printstring(self.statuswin,
986 printstring(self.statuswin,
980 "SELECT CHUNKS: (j/k/up/dn/pgup/pgdn) move cursor; "
987 "SELECT CHUNKS: (j/k/up/dn/pgup/pgdn) move cursor; "
981 "(space/A) toggle hunk/all; (e)dit hunk;",
988 "(space/A) toggle hunk/all; (e)dit hunk;",
@@ -1601,6 +1608,9 b' are you sure you want to review/edit and'
1601 self.updatescreen()
1608 self.updatescreen()
1602 try:
1609 try:
1603 keypressed = self.statuswin.getkey()
1610 keypressed = self.statuswin.getkey()
1611 if self.errorstr is not None:
1612 self.errorstr = None
1613 continue
1604 except curses.error:
1614 except curses.error:
1605 keypressed = "foobar"
1615 keypressed = "foobar"
1606 if self.handlekeypressed(keypressed):
1616 if self.handlekeypressed(keypressed):
General Comments 0
You need to be logged in to leave comments. Login now