Mercurial > jhg
diff src/org/tmatesoft/hg/repo/HgWorkingCopyStatusCollector.java @ 360:150500515714
Report non-critical errors during status operation to handler/inspector
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 08 Dec 2011 22:19:27 +0100 |
parents | 91d75e1bac9f |
children | 4937e35b805b |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/HgWorkingCopyStatusCollector.java Thu Dec 08 15:34:13 2011 +0100 +++ b/src/org/tmatesoft/hg/repo/HgWorkingCopyStatusCollector.java Thu Dec 08 22:19:27 2011 +0100 @@ -149,7 +149,7 @@ } try { if (getDirstateImpl() == null) { - // XXX this is a hack to avoid declaring throws for the #walk() at the moment + // FIXME this is a hack to avoid declaring throws for the #walk() at the moment // once I decide whether to have mediator that collects errors or to use exceptions here // this hack shall be removed in favor of either severe error in mediator or a re-thrown exception. getDirstate(); @@ -339,8 +339,8 @@ return; } } catch (HgException ex) { - ex.printStackTrace(); - // FIXME report to a mediator, continue status collection + // report failure and continue status collection + inspector.invalid(fname, ex); } } else if ((r = getDirstateImpl().checkAdded(fname)) != null) { if (r.copySource() != null && baseRevNames.contains(r.copySource())) {