From 5f94e4430800f6e1352733a3ff684e959341984d Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Thu, 7 Dec 2017 10:18:21 +0900 Subject: LfsServerText: Fix formatting of invalidPathInfo message The message is formatted as: Invalid pathInfo '/abc' does not match '/{SHA-256}' but should be: Invalid pathInfo: '/abc' does not match '/{SHA-256}' (i.e. including a colon) to be consistent with other messages. Change-Id: Ic38aa7d33dd02d7954b95c331a73919a90c69991 Signed-off-by: David Pursehouse --- .../tst/org/eclipse/jgit/lfs/server/fs/DownloadTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'org.eclipse.jgit.lfs.server.test/tst/org/eclipse/jgit') diff --git a/org.eclipse.jgit.lfs.server.test/tst/org/eclipse/jgit/lfs/server/fs/DownloadTest.java b/org.eclipse.jgit.lfs.server.test/tst/org/eclipse/jgit/lfs/server/fs/DownloadTest.java index 33ba2de803..a38bf6a808 100644 --- a/org.eclipse.jgit.lfs.server.test/tst/org/eclipse/jgit/lfs/server/fs/DownloadTest.java +++ b/org.eclipse.jgit.lfs.server.test/tst/org/eclipse/jgit/lfs/server/fs/DownloadTest.java @@ -81,7 +81,7 @@ public class DownloadTest extends LfsServerTest { String id = putContent(TEXT).name().substring(0, 60); Path f = Paths.get(getTempDirectory().toString(), "download"); String error = String.format( - "Invalid pathInfo '/%s' does not match '/{SHA-256}'", id); + "Invalid pathInfo: '/%s' does not match '/{SHA-256}'", id); exception.expect(RuntimeException.class); exception.expectMessage( formatErrorMessage(SC_UNPROCESSABLE_ENTITY, error)); -- cgit v1.2.3