Mercurial > public > mercurial-scm > hg-stable
diff mercurial/ui.py @ 26896:5e46123e6c35
error: add structured exception for EOF at prompt
We'll catch this exception for promptchoice queries to provide better error
handling.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Tue, 10 Nov 2015 00:46:45 -0800 |
parents | 71d5238f92e9 |
children | 9eeca021a803 |
line wrap: on
line diff
--- a/mercurial/ui.py Mon Nov 09 22:37:32 2015 -0800 +++ b/mercurial/ui.py Tue Nov 10 00:46:45 2015 -0800 @@ -756,7 +756,7 @@ self.write(r, "\n") return r except EOFError: - raise error.Abort(_('response expected')) + raise error.ResponseExpected() @staticmethod def extractchoices(prompt): @@ -803,7 +803,7 @@ else: return getpass.getpass('') except EOFError: - raise error.Abort(_('response expected')) + raise error.ResponseExpected() def status(self, *msg, **opts): '''write status message to output (if ui.quiet is False)