mercurial/commands.py
changeset 42130 a362b0b95e42
parent 42129 232a33a11ce0
child 42147 013de80bf90e
--- a/mercurial/commands.py	Fri Apr 05 15:56:05 2019 +0200
+++ b/mercurial/commands.py	Fri Apr 05 14:35:33 2019 +0200
@@ -4503,7 +4503,10 @@
             try:
                 ret = postincoming(ui, repo, modheads, opts.get('update'),
                                    checkout, brev)
-
+            except error.FilteredRepoLookupError as exc:
+                msg = _('cannot update to target: %s') % exc.args[0]
+                exc.args = (msg,) + exc.args[1:]
+                raise
             finally:
                 del repo._subtoppath