]> source.dussan.org Git - jgit.git/commitdiff
LfsServerText: Fix formatting of invalidPathInfo message 41/113041/1
authorDavid Pursehouse <david.pursehouse@gmail.com>
Thu, 7 Dec 2017 01:18:21 +0000 (10:18 +0900)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Thu, 7 Dec 2017 22:43:19 +0000 (07:43 +0900)
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 <david.pursehouse@gmail.com>
org.eclipse.jgit.lfs.server.test/tst/org/eclipse/jgit/lfs/server/fs/DownloadTest.java
org.eclipse.jgit.lfs.server/resources/org/eclipse/jgit/lfs/server/internal/LfsServerText.properties

index 64cecd8cbe30d2b5cf3b0810322dd5c2eba15a02..303d8056d12d9a593ec957eda29a69906b9c7a0f 100644 (file)
@@ -81,7 +81,7 @@ public class DownloadTest extends LfsServerTest {
                        fail("expected RuntimeException");
                } catch (RuntimeException e) {
                        String error = String.format(
-                                       "Invalid pathInfo '/%s' does not match '/{SHA-256}'", id);
+                                       "Invalid pathInfo: '/%s' does not match '/{SHA-256}'", id);
                        assertEquals(formatErrorMessage(SC_UNPROCESSABLE_ENTITY, error),
                                        e.getMessage());
                }
index b2b487eefc847b9849bdfa3b454c668582e8fb07..659714528c00ecc1705e110dea5f3e924d85de0f 100644 (file)
@@ -1,5 +1,5 @@
 failedToCalcSignature=Failed to calculate a request signature: {0}
-invalidPathInfo=Invalid pathInfo ''{0}'' does not match ''/'{'SHA-256'}'''
+invalidPathInfo=Invalid pathInfo: ''{0}'' does not match ''/'{'SHA-256'}'''
 objectNotFound=Object ''{0}'' not found
 undefinedS3AccessKey=S3 configuration: 'accessKey' is undefined
 undefinedS3Bucket=S3 configuration: 'bucket' is undefined