##// END OF EJS Templates
ui: convert exception data to bytes when printing chained exception info...
Matt Harbison -
r44329:e63b27fb default
parent child Browse files
Show More
@@ -1857,9 +1857,9 b' class ui(object):'
1857 # exclude frame where 'exc' was chained and rethrown from exctb
1857 # exclude frame where 'exc' was chained and rethrown from exctb
1858 self.write_err(
1858 self.write_err(
1859 b'Traceback (most recent call last):\n',
1859 b'Traceback (most recent call last):\n',
1860 b''.join(exctb[:-1]),
1860 encoding.strtolocal(''.join(exctb[:-1])),
1861 b''.join(causetb),
1861 encoding.strtolocal(''.join(causetb)),
1862 b''.join(exconly),
1862 encoding.strtolocal(''.join(exconly)),
1863 )
1863 )
1864 else:
1864 else:
1865 output = traceback.format_exception(exc[0], exc[1], exc[2])
1865 output = traceback.format_exception(exc[0], exc[1], exc[2])
General Comments 0
You need to be logged in to leave comments. Login now