Mercurial > hg4j
diff src/org/tmatesoft/hg/repo/HgRepository.java @ 396:0ae53c32ecef
Straighten out exceptions thrown when file access failed - three is too much
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 23 Feb 2012 01:06:24 +0100 |
parents | b015f3918120 |
children | 2747b0723867 |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/HgRepository.java Wed Feb 22 16:54:34 2012 +0100 +++ b/src/org/tmatesoft/hg/repo/HgRepository.java Thu Feb 23 01:06:24 2012 +0100 @@ -25,7 +25,7 @@ import java.util.HashMap; import java.util.List; -import org.tmatesoft.hg.core.HgDataStreamException; +import org.tmatesoft.hg.core.HgException; import org.tmatesoft.hg.core.HgInvalidControlFileException; import org.tmatesoft.hg.core.Nodeid; import org.tmatesoft.hg.core.SessionContext; @@ -164,7 +164,7 @@ } catch (CancelledException ex) { // IGNORE, can't happen, we did not configure cancellation getContext().getLog().debug(getClass(), ex, null); - } catch (HgDataStreamException ex) { + } catch (HgException ex) { getContext().getLog().error(getClass(), ex, null); // FIXME need to react } catch (IOException ex) {