summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit
diff options
context:
space:
mode:
authorTomasz Zarna <tomasz.zarna@tasktop.com>2012-12-10 11:20:06 +0100
committerGerrit Code Review @ Eclipse.org <gerrit@eclipse.org>2013-01-08 06:26:36 -0500
commit928286ad8f5713dbacee033250ee63fc7072e6bc (patch)
treec15c3b1208f85cebd5518eaae78148a9fc22c3ae /org.eclipse.jgit
parent3328f45dde327cf344bed2aa34838b777e0dd5b8 (diff)
downloadjgit-928286ad8f5713dbacee033250ee63fc7072e6bc.tar.gz
jgit-928286ad8f5713dbacee033250ee63fc7072e6bc.zip
Return info about config subsection when trying to get an invalid enum
Change-Id: Id4a72a68bdbd485619f4801683d38ad98f9841a2
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/lib/Config.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Config.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Config.java
index 348e1175d9..fb78d0efff 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Config.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Config.java
@@ -412,11 +412,13 @@ public class Config {
}
if (subsection != null)
- throw new IllegalArgumentException(MessageFormat.format(JGitText
- .get().enumValueNotSupported3, section, name, value));
+ throw new IllegalArgumentException(MessageFormat.format(
+ JGitText.get().enumValueNotSupported3, section, subsection,
+ name, value));
else
- throw new IllegalArgumentException(MessageFormat.format(JGitText
- .get().enumValueNotSupported2, section, name, value));
+ throw new IllegalArgumentException(
+ MessageFormat.format(JGitText.get().enumValueNotSupported2,
+ section, name, value));
}
/**