Fix typos of some keys in LfsText

Change-Id: I86dee0b68e627e26cbd29976162bc7b953ebf276
This commit is contained in:
Matthias Sohn 2022-03-03 10:46:33 +01:00
parent 5ac27a55b0
commit 877c79dc69
4 changed files with 6 additions and 6 deletions

View File

@ -7,7 +7,7 @@ invalidLongId=Invalid id: {0}
invalidLongIdLength=Invalid id length {0}; should be {1} invalidLongIdLength=Invalid id length {0}; should be {1}
lfsFailedToGetRepository=failed to get repository {0} lfsFailedToGetRepository=failed to get repository {0}
lfsNoDownloadUrl="Need to download object from LFS server but couldn't determine LFS server URL" lfsNoDownloadUrl="Need to download object from LFS server but couldn't determine LFS server URL"
lfsUnathorized=Not authorized to perform operation {0} on repository {1} lfsUnauthorized=Not authorized to perform operation {0} on repository {1}
lfsUnavailable=LFS is not available for repository {0} lfsUnavailable=LFS is not available for repository {0}
missingLocalObject="Local Object {0} is missing" missingLocalObject="Local Object {0} is missing"
protocolError=LFS Protocol Error {0}: {1} protocolError=LFS Protocol Error {0}: {1}
@ -16,4 +16,4 @@ repositoryReadOnly=Repository {0} is read-only
requiredHashFunctionNotAvailable=Required hash function {0} not available. requiredHashFunctionNotAvailable=Required hash function {0} not available.
serverFailure=When trying to open a connection to {0} the server responded with an error code. rc={1} serverFailure=When trying to open a connection to {0} the server responded with an error code. rc={1}
userConfigInvalid="User config file {0} invalid {1}" userConfigInvalid="User config file {0} invalid {1}"
wrongAmoutOfDataReceived=While downloading data from the content server {0} {1} bytes have been received while {2} have been expected wrongAmountOfDataReceived=While downloading data from the content server {0} {1} bytes have been received while {2} have been expected

View File

@ -205,7 +205,7 @@ public static Collection<Path> downloadLfsResource(Lfs lfs, Repository db,
long bytesCopied = Files.copy(contentIn, path); long bytesCopied = Files.copy(contentIn, path);
if (bytesCopied != o.size) { if (bytesCopied != o.size) {
throw new IOException(MessageFormat.format( throw new IOException(MessageFormat.format(
LfsText.get().wrongAmoutOfDataReceived, LfsText.get().wrongAmountOfDataReceived,
contentServerConn.getURL(), contentServerConn.getURL(),
Long.valueOf(bytesCopied), Long.valueOf(bytesCopied),
Long.valueOf(o.size))); Long.valueOf(o.size)));

View File

@ -31,7 +31,7 @@ public class LfsUnauthorized extends LfsException {
* the repository name. * the repository name.
*/ */
public LfsUnauthorized(String operation, String name) { public LfsUnauthorized(String operation, String name) {
super(MessageFormat.format(LfsText.get().lfsUnathorized, operation, super(MessageFormat.format(LfsText.get().lfsUnauthorized, operation,
name)); name));
} }
} }

View File

@ -36,7 +36,7 @@ public static LfsText get() {
/***/ public String invalidLongIdLength; /***/ public String invalidLongIdLength;
/***/ public String lfsFailedToGetRepository; /***/ public String lfsFailedToGetRepository;
/***/ public String lfsNoDownloadUrl; /***/ public String lfsNoDownloadUrl;
/***/ public String lfsUnathorized; /***/ public String lfsUnauthorized;
/***/ public String lfsUnavailable; /***/ public String lfsUnavailable;
/***/ public String missingLocalObject; /***/ public String missingLocalObject;
/***/ public String protocolError; /***/ public String protocolError;
@ -45,5 +45,5 @@ public static LfsText get() {
/***/ public String requiredHashFunctionNotAvailable; /***/ public String requiredHashFunctionNotAvailable;
/***/ public String serverFailure; /***/ public String serverFailure;
/***/ public String userConfigInvalid; /***/ public String userConfigInvalid;
/***/ public String wrongAmoutOfDataReceived; /***/ public String wrongAmountOfDataReceived;
} }