summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test
diff options
context:
space:
mode:
authorRobin Stocker <robin@nibor.org>2013-08-10 17:37:20 +0200
committerRobin Stocker <robin@nibor.org>2013-12-03 23:10:05 +0100
commite0502ebb032f78227437a7863eea9ca91678e593 (patch)
treebeca45c596cff603b33ec7c21176d9123aa30464 /org.eclipse.jgit.test
parent7dc8a4f089c1ca4762cf6fbf2e77898607a5820a (diff)
downloadjgit-e0502ebb032f78227437a7863eea9ca91678e593.tar.gz
jgit-e0502ebb032f78227437a7863eea9ca91678e593.zip
More helpful InvalidPathException messages (include reason)
Instead of just a generic "Invalid path: $path", add a reason for the cases where it's not obvious what the problem is (e.g. "aux" being reserved on Windows). Bug: 413915 Change-Id: Ia6436bd2560e4f049c92d9aac907cb87348605e0 Signed-off-by: Robin Stocker <robin@nibor.org>
Diffstat (limited to 'org.eclipse.jgit.test')
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/DirCacheCheckoutMaliciousPathTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/DirCacheCheckoutMaliciousPathTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/DirCacheCheckoutMaliciousPathTest.java
index b3219cddb5..d29a75ef71 100644
--- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/DirCacheCheckoutMaliciousPathTest.java
+++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/DirCacheCheckoutMaliciousPathTest.java
@@ -405,7 +405,7 @@ public class DirCacheCheckoutMaliciousPathTest extends RepositoryTestCase {
} catch (InvalidPathException e) {
if (good)
throw e;
- assertTrue(e.getMessage().startsWith("Invalid path: "));
+ assertTrue(e.getMessage().startsWith("Invalid path"));
}
}