From 5ab30a19303d87b70788f728b0778749fa6a1f4d Mon Sep 17 00:00:00 2001 From: Danish Phiroz Date: Wed, 23 Oct 2024 11:22:33 -0400 Subject: [PATCH] Unwanted Optional handling removed --- MVMCore/MVMCore/Models/Model/ModelRegistry.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MVMCore/MVMCore/Models/Model/ModelRegistry.swift b/MVMCore/MVMCore/Models/Model/ModelRegistry.swift index b42084b..3a14f80 100644 --- a/MVMCore/MVMCore/Models/Model/ModelRegistry.swift +++ b/MVMCore/MVMCore/Models/Model/ModelRegistry.swift @@ -94,7 +94,7 @@ public struct ModelRegistry { case .decoderErrorUnexpectedType(let actualType, let expectedType, let identifer, let codingKey, let codingPath): errorObject.title = "Decoder Error: Model Type Unexpected" let codingPathConcat = codingPath?.compactMap { $0.stringValue }.joined(separator: " ") ?? "" - errorObject.messageToLog = "Actual Type: \(actualType ?? "") Expected Type: \(expectedType ?? "")" + (identifer ?? "") + (codingKey?.stringValue ?? "") + codingPathConcat + errorObject.messageToLog = "Actual Type: \(actualType) Expected Type: \(expectedType)" + (identifer) + (codingKey?.stringValue ?? "") + codingPathConcat case .handlerNotMapped(let identifer, let categoryName): errorObject.title = "Handler Not Mapped" errorObject.messageToLog = (identifer ?? "") + (categoryName ?? "")