Mercurial > hg
changeset 31961:db823e38a61c
stdio: raise StdioError if something goes wrong in ui._write
author | Bryan O'Sullivan <bryano@fb.com> |
---|---|
date | Tue, 11 Apr 2017 14:54:12 -0700 |
parents | 71dcd4a4fa2f |
children | e9646ff34d55 |
files | mercurial/ui.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/ui.py Tue Apr 11 14:54:12 2017 -0700 +++ b/mercurial/ui.py Tue Apr 11 14:54:12 2017 -0700 @@ -768,6 +768,8 @@ try: for a in msgs: self.fout.write(a) + except IOError as err: + raise error.StdioError(err) finally: self._blockedtimes['stdio_blocked'] += \ (util.timer() - starttime) * 1000