From edeec13ccb2ab1fb566f8cd03abed1e8bd78e520 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Tue, 22 Oct 2019 14:18:17 +0200 Subject: [PATCH] Mention FAQ on external file error message --- .../Global/ConfigurationParserResult+Alerts.swift | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Passepartout-iOS/Global/ConfigurationParserResult+Alerts.swift b/Passepartout-iOS/Global/ConfigurationParserResult+Alerts.swift index bea1d751..157711d3 100644 --- a/Passepartout-iOS/Global/ConfigurationParserResult+Alerts.swift +++ b/Passepartout-iOS/Global/ConfigurationParserResult+Alerts.swift @@ -112,7 +112,10 @@ extension OpenVPN.ConfigurationParser.Result { log.error("Could not parse configuration URL: missing configuration, \(option)") return L10n.Core.ParsedFile.Alerts.Missing.message(option) - case .unsupportedConfiguration(let option): + case .unsupportedConfiguration(var option): + if option.contains("external") { + option.append(" - see FAQ") + } log.error("Could not parse configuration URL: unsupported configuration, \(option)") return L10n.Core.ParsedFile.Alerts.Unsupported.message(option) @@ -132,7 +135,10 @@ extension OpenVPN.ConfigurationParser.Result { case .missingConfiguration(let option): return option - case .unsupportedConfiguration(let option): + case .unsupportedConfiguration(var option): + if option.contains("external") { + option.append(" - see FAQ") + } return option default: