##// END OF EJS Templates
debug: convert a few exceptions to bytes before wrapping in another error...
Matt Harbison -
r47516:8408c319 stable
parent child Browse files
Show More
@@ -2041,7 +2041,9 b' def debugmanifestfulltextcache(ui, repo,'
2041 try:
2041 try:
2042 manifest = m[store.lookup(n)]
2042 manifest = m[store.lookup(n)]
2043 except error.LookupError as e:
2043 except error.LookupError as e:
2044 raise error.Abort(e, hint=b"Check your manifest node id")
2044 raise error.Abort(
2045 bytes(e), hint=b"Check your manifest node id"
2046 )
2045 manifest.read() # stores revisision in cache too
2047 manifest.read() # stores revisision in cache too
2046 return
2048 return
2047
2049
@@ -2376,7 +2378,7 b' def debugobsolete(ui, repo, precursor=No'
2376 tr.close()
2378 tr.close()
2377 except ValueError as exc:
2379 except ValueError as exc:
2378 raise error.Abort(
2380 raise error.Abort(
2379 _(b'bad obsmarker input: %s') % pycompat.bytestr(exc)
2381 _(b'bad obsmarker input: %s') % stringutil.forcebytestr(exc)
2380 )
2382 )
2381 finally:
2383 finally:
2382 tr.release()
2384 tr.release()
General Comments 0
You need to be logged in to leave comments. Login now