From 88674d2fc4f379070714773a0e98c12e8b5f7a40 Mon Sep 17 00:00:00 2001 From: Stuart Breckenridge Date: Thu, 23 Sep 2021 20:16:09 +0800 Subject: [PATCH] Consistent theme error messages on iOS --- iOS/UIKit Extensions/UIViewController-Extensions.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/iOS/UIKit Extensions/UIViewController-Extensions.swift b/iOS/UIKit Extensions/UIViewController-Extensions.swift index 9d06d7609..4f257e7b5 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 = "Type '\(type)' mismatch." + let str = "This theme cannot be used because the type—'\(type)'—is mismatched." presentError(title: errorTitle, message: str, dismiss: dismiss) case .valueNotFound(let value, _): - let str = "Value '\(value)' not found." + let str = "This theme cannot be used because the value—'\(value)'—is not found." presentError(title: errorTitle, message: str, dismiss: dismiss) case .keyNotFound(let codingKey, _): - let str = "Key '\(codingKey.stringValue)' not found." + let str = "This theme cannot be used because the key—'\(codingKey.stringValue)'—is not found." presentError(title: errorTitle, message: str, dismiss: dismiss) case .dataCorrupted( _): presentError(title: errorTitle, message: error.localizedDescription, dismiss: dismiss)