From bd6095517ba60928638311dc15e321fd3c42d252 Mon Sep 17 00:00:00 2001 From: Stuart Breckenridge Date: Thu, 23 Sep 2021 20:19:41 +0800 Subject: [PATCH] is missing instead of not found --- Mac/AppDelegate.swift | 4 ++-- iOS/UIKit Extensions/UIViewController-Extensions.swift | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Mac/AppDelegate.swift b/Mac/AppDelegate.swift index cfb108eed..e52f1be3b 100644 --- a/Mac/AppDelegate.swift +++ b/Mac/AppDelegate.swift @@ -926,9 +926,9 @@ internal extension AppDelegate { case .typeMismatch(let type, _): informativeText = "the type—'\(type)'—is mismatched." case .valueNotFound(let value, _): - informativeText = "the value—'\(value)'—is not found." + informativeText = "the value—'\(value)'—is missing in the Info.plist." case .keyNotFound(let codingKey, _): - informativeText = "the key—'\(codingKey.stringValue)'—is not found." + informativeText = "the key—'\(codingKey.stringValue)'—is missing in the Info.plist." case .dataCorrupted( _): informativeText = error.localizedDescription default: diff --git a/iOS/UIKit Extensions/UIViewController-Extensions.swift b/iOS/UIKit Extensions/UIViewController-Extensions.swift index 4f257e7b5..11e166e24 100644 --- a/iOS/UIKit Extensions/UIViewController-Extensions.swift +++ b/iOS/UIKit Extensions/UIViewController-Extensions.swift @@ -19,13 +19,13 @@ extension UIViewController { let errorTitle = NSLocalizedString("Error", comment: "Error") switch decodingError { case .typeMismatch(let type, _): - let str = "This theme cannot be used because the type—'\(type)'—is mismatched." + let str = "This theme cannot be used because the type—'\(type)'—is mismatched in the Info.plist." presentError(title: errorTitle, message: str, dismiss: dismiss) case .valueNotFound(let value, _): - let str = "This theme cannot be used because the value—'\(value)'—is not found." + let str = "This theme cannot be used because the value—'\(value)'—is missing in the Info.plist." presentError(title: errorTitle, message: str, dismiss: dismiss) case .keyNotFound(let codingKey, _): - let str = "This theme cannot be used because the key—'\(codingKey.stringValue)'—is not found." + let str = "This theme cannot be used because the key—'\(codingKey.stringValue)'—is missing in the Info.plist." presentError(title: errorTitle, message: str, dismiss: dismiss) case .dataCorrupted( _): presentError(title: errorTitle, message: error.localizedDescription, dismiss: dismiss)