Skip to content
Snippets Groups Projects
Commit 19533e4c authored by Kyle Lippincott's avatar Kyle Lippincott
Browse files

py3: fix curses chunkselector fallback (when diffs are too large) on py3

Previously we showed the message using Exception.message, which is removed in
py3. Since crecordmod.fallbackerror inherits from error.Abort, we can just use
`b'%s' % exception` to print the message. This does not print the hint, but
that's fine - we don't set one. We inherit from error.Abort so that if a
codepath doesn't handle fallback specially, it exits to the terminal with a sane
message instead of an unknown exception error.

Differential Revision: https://phab.mercurial-scm.org/D7912
parent 2f1d6180
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment