Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

thg: improve error response

Changeset e87440caa0a7

Parent 0a803db2d89b

by Steve Borho

Changes to 2 files · Browse files at e87440caa0a7 Showing diff from parent 0a803db2d89b Diff from another changeset...

Change 1 of 2 Show Entire File thg Stacked
 
38
39
40
 
 
41
42
43
 
50
51
52
53
 
54
55
56
 
38
39
40
41
42
43
44
45
 
52
53
54
 
55
56
57
58
@@ -38,6 +38,8 @@
 _ui = ui.ui()  capt = _ui.configbool('tortoisehg', 'stderrcapt', True)   +errors = ('Traceback', 'TypeError', 'NameError', 'AttributeError') +  if not capt or 'THGDEBUG' in os.environ or '--profile' in sys.argv:   sys.exit(tortoisehg.hgqt.run.dispatch(sys.argv[1:]))  else: @@ -50,7 +52,7 @@
  sys.stderr = origstderr   mystderr.seek(0)   for l in mystderr.readlines(): - if l.startswith(('Traceback', 'TypeError', 'NameError')): + if l.startswith(errors):   from tortoisehg.hgqt.bugreport import run   from tortoisehg.hgqt.run import qtrun   error = 'Recoverable runtime error (stderr):\n'
 
318
319
320
 
321
322
323
 
318
319
320
321
322
323
324
@@ -318,6 +318,7 @@
  bugreport = run(ui, **opts)   bugreport.show()   mainapp.exec_() + mainapp = None    def thgstatus(ui, *pats, **opts):   """update TortoiseHg status cache"""