diff options
author | Robin Stocker <robin@nibor.org> | 2013-08-10 17:37:20 +0200 |
---|---|---|
committer | Robin Stocker <robin@nibor.org> | 2013-12-03 23:10:05 +0100 |
commit | e0502ebb032f78227437a7863eea9ca91678e593 (patch) | |
tree | beca45c596cff603b33ec7c21176d9123aa30464 /org.eclipse.jgit.test | |
parent | 7dc8a4f089c1ca4762cf6fbf2e77898607a5820a (diff) | |
download | jgit-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.java | 2 |
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")); } } |