summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2012-07-01 21:08:17 +0200
committerArne Schwabe <arne@rfc2549.org>2012-07-01 21:08:17 +0200
commit43ee0308b1b866a45437c0e27d91c2c96b515d87 (patch)
tree0c8645537a18b302bcc15a0c426afe2d805e1d6f
parentd9608521bf431a648999d06581404fef4ff57ce0 (diff)
Correct error message for number of arguments
-rw-r--r--res/values-de/strings.xml2
-rw-r--r--src/de/blinkt/openvpn/ConfigParser.java2
2 files changed, 1 insertions, 3 deletions
diff --git a/res/values-de/strings.xml b/res/values-de/strings.xml
index f0be67e8..7e6216da 100644
--- a/res/values-de/strings.xml
+++ b/res/values-de/strings.xml
@@ -180,5 +180,3 @@
<string name="mobile_info">Modell %1$s (%2$s) %3$s, Android API %4$d</string>
<string name="error_rsa_sign">Fehler beim Zugriff auf den Android Keystore %1$s: %2$s</string>
</resources>
-<!-- LocalWords: OpenVPN
--->
diff --git a/src/de/blinkt/openvpn/ConfigParser.java b/src/de/blinkt/openvpn/ConfigParser.java
index 913fda24..44af2cdc 100644
--- a/src/de/blinkt/openvpn/ConfigParser.java
+++ b/src/de/blinkt/openvpn/ConfigParser.java
@@ -494,7 +494,7 @@ public class ConfigParser {
if(optionline.size()< (minarg+1) || optionline.size() > maxarg+1) {
String err = String.format("Option %s has %d parameters, expected between %d and %d",
- option,args.size()-1,minarg,maxarg );
+ option,optionline.size()-1,minarg,maxarg );
throw new ConfigParseError(err);
}
options.remove(option);