From 91beceb628c99c8c351d844a164b11e40a50d0f9 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Tue, 20 Aug 2013 13:54:46 +0200 Subject: More debug for broken format string in translations --- src/de/blinkt/openvpn/core/VpnStatus.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/de/blinkt') diff --git a/src/de/blinkt/openvpn/core/VpnStatus.java b/src/de/blinkt/openvpn/core/VpnStatus.java index 86f0f727..60fa730e 100644 --- a/src/de/blinkt/openvpn/core/VpnStatus.java +++ b/src/de/blinkt/openvpn/core/VpnStatus.java @@ -18,6 +18,7 @@ import java.security.cert.CertificateException; import java.security.cert.CertificateFactory; import java.security.cert.X509Certificate; import java.util.Arrays; +import java.util.FormatFlagsConversionMismatchException; import java.util.LinkedList; import java.util.Locale; import java.util.UnknownFormatConversionException; @@ -168,6 +169,11 @@ public class VpnStatus { throw new UnknownFormatConversionException(e.getLocalizedMessage() + getString(null)); else throw e; + } catch (java.util.FormatFlagsConversionMismatchException e) { + if (c != null) + throw new FormatFlagsConversionMismatchException(e.getLocalizedMessage() + getString(null),e.getConversion()); + else + throw e; } } -- cgit v1.2.3