Mention FAQ on external file error message

This commit is contained in:
Davide De Rosa 2019-10-22 14:18:17 +02:00
parent 911645cc68
commit edeec13ccb
1 changed files with 8 additions and 2 deletions

View File

@ -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: