From 43ee0308b1b866a45437c0e27d91c2c96b515d87 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Sun, 1 Jul 2012 21:08:17 +0200 Subject: Correct error message for number of arguments --- src/de/blinkt/openvpn/ConfigParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/de') 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); -- cgit v1.2.3