aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit
diff options
context:
space:
mode:
authorRobin Stocker <robin@nibor.org>2013-03-08 18:00:19 +0100
committerRobin Stocker <robin@nibor.org>2013-03-08 18:00:19 +0100
commit3ee04e35313a4a5cd51bbd73b566d596816c2440 (patch)
tree2da3c77791fb5d51090cfcd9d12d063dd283d28b /org.eclipse.jgit
parent3ad454497cdb6a917c00b01c735f5a469b8fb2ff (diff)
downloadjgit-3ee04e35313a4a5cd51bbd73b566d596816c2440.tar.gz
jgit-3ee04e35313a4a5cd51bbd73b566d596816c2440.zip
Include the number of ms in timeout error message
Noticed that while analyzing bug 402131. Change-Id: If3fd40b64d5088c4579946271a67346cbd9e6556
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r--org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties4
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/util/io/TimeoutInputStream.java7
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/util/io/TimeoutOutputStream.java7
3 files changed, 10 insertions, 8 deletions
diff --git a/org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties b/org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties
index 18f33147ce..677f735cec 100644
--- a/org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties
+++ b/org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties
@@ -385,7 +385,7 @@ pushIsNotSupportedForBundleTransport=Push is not supported for bundle transport
pushNotPermitted=push not permitted
rawLogMessageDoesNotParseAsLogEntry=Raw log message does not parse as log entry
readingObjectsFromLocalRepositoryFailed=reading objects from local repository failed: {0}
-readTimedOut=Read timed out
+readTimedOut=Read timed out after {0} ms
receivePackObjectTooLarge1=Object too large, rejecting the pack. Max object size limit is {0} bytes.
receivePackObjectTooLarge2=Object too large ({0} bytes), rejecting the pack. Max object size limit is {1} bytes.
receivingObjects=Receiving objects
@@ -541,7 +541,7 @@ weeksAgo={0} weeks ago
windowSizeMustBeLesserThanLimit=Window size must be < limit
windowSizeMustBePowerOf2=Window size must be power of 2
writerAlreadyInitialized=Writer already initialized
-writeTimedOut=Write timed out
+writeTimedOut=Write timed out after {0} ms
writingNotPermitted=Writing not permitted
writingNotSupported=Writing {0} not supported.
writingObjects=Writing objects
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/io/TimeoutInputStream.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/io/TimeoutInputStream.java
index cda2b59b43..fe452c255d 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/util/io/TimeoutInputStream.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/io/TimeoutInputStream.java
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2009, Google Inc.
+ * Copyright (C) 2009, 2013 Google Inc.
* and other copyright owners as documented in the project's IP log.
*
* This program and the accompanying materials are made available
@@ -137,7 +137,8 @@ public class TimeoutInputStream extends FilterInputStream {
myTimer.end();
}
- private static InterruptedIOException readTimedOut() {
- return new InterruptedIOException(JGitText.get().readTimedOut);
+ private InterruptedIOException readTimedOut() {
+ return new InterruptedIOException(MessageFormat.format(
+ JGitText.get().readTimedOut, Integer.valueOf(timeout)));
}
}
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/io/TimeoutOutputStream.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/io/TimeoutOutputStream.java
index b074396a75..7ca11ca055 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/util/io/TimeoutOutputStream.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/io/TimeoutOutputStream.java
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2009, Google Inc.
+ * Copyright (C) 2009, 2013 Google Inc.
* and other copyright owners as documented in the project's IP log.
*
* This program and the accompanying materials are made available
@@ -150,7 +150,8 @@ public class TimeoutOutputStream extends OutputStream {
myTimer.end();
}
- private static InterruptedIOException writeTimedOut() {
- return new InterruptedIOException(JGitText.get().writeTimedOut);
+ private InterruptedIOException writeTimedOut() {
+ return new InterruptedIOException(MessageFormat.format(
+ JGitText.get().writeTimedOut, Integer.valueOf(timeout)));
}
}