Mercurial > jhg
diff src/org/tmatesoft/hg/core/HgInvalidFileException.java @ 391:856517285256
Provide more details about exception
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Mon, 20 Feb 2012 03:32:52 +0100 |
parents | 981f9f50bb6c |
children | f52ca9530774 |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/core/HgInvalidFileException.java Thu Feb 16 16:08:51 2012 +0100 +++ b/src/org/tmatesoft/hg/core/HgInvalidFileException.java Mon Feb 20 03:32:52 2012 +0100 @@ -59,4 +59,19 @@ public File getFile() { return localFile; } + + @Override + protected void appendDetails(StringBuilder sb) { + super.appendDetails(sb); + if (localFile != null) { + sb.append(" file:"); + sb.append(localFile.getPath()); + sb.append(','); + if (localFile.exists()) { + sb.append("EXISTS"); + } else { + sb.append("DOESN'T EXIST"); + } + } + } }