In verbose mode with -k, display the complete error messages

This commit is contained in:
Thomas Nagy 2011-10-04 21:31:01 +02:00
parent 54b89c8804
commit c1a0bc1f3b
1 changed files with 3 additions and 1 deletions

View File

@ -312,13 +312,15 @@ class Parallel(object):
st = tsk.runnable_status()
except Exception:
self.processed += 1
tsk.err_msg = Utils.ex_stack()
if not self.stop and self.bld.keep:
tsk.hasrun = Task.SKIPPED
if self.bld.keep == 1:
# if -k stop at the first exception, if -kk try to go as far as possible
if Logs.verbose:
self.error.append(tsk)
self.stop = True
continue
tsk.err_msg = Utils.ex_stack()
tsk.hasrun = Task.EXCEPTION
self.error_handler(tsk)
continue