##// 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 2041 try:
2042 2042 manifest = m[store.lookup(n)]
2043 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 2047 manifest.read() # stores revisision in cache too
2046 2048 return
2047 2049
@@ -2376,7 +2378,7 b' def debugobsolete(ui, repo, precursor=No'
2376 2378 tr.close()
2377 2379 except ValueError as exc:
2378 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 2383 finally:
2382 2384 tr.release()
General Comments 0
You need to be logged in to leave comments. Login now