Mercurial > jhg
diff src/org/tmatesoft/hg/core/HgCatCommand.java @ 215:41a778e3fd31
Issue 5: Facilities for progress and cancellation. More specific exceptions. Exceptions from callbacks as RuntimeException
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Tue, 17 May 2011 00:56:54 +0200 |
parents | d5268ca7715b |
children | b7347daa50e3 |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/core/HgCatCommand.java Mon May 16 21:10:36 2011 +0200 +++ b/src/org/tmatesoft/hg/core/HgCatCommand.java Tue May 17 00:56:54 2011 +0200 @@ -35,7 +35,7 @@ * @author Artem Tikhomirov * @author TMate Software Ltd. */ -public class HgCatCommand { +public class HgCatCommand extends HgAbstractCommand<HgCatCommand> { private final HgRepository repo; private Path file; @@ -110,7 +110,7 @@ } HgDataFile dataFile = repo.getFileNode(file); if (!dataFile.exists()) { - throw new HgDataStreamException(file.toString(), new FileNotFoundException(file.toString())); + throw new HgDataStreamException(file, new FileNotFoundException(file.toString())); } int revToExtract; if (revision != null) {