From 09ff3b64573171c7a1347236a302e8017f8e9ef1 Mon Sep 17 00:00:00 2001 From: "Hedden, Kyle Matthew" Date: Thu, 25 Apr 2024 16:01:55 -0400 Subject: [PATCH] Digital PCT265 defect CXTDT-531317 - Updated error messaging --- 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 e3cbd1c..65e413d 100644 --- a/MVMCore/MVMCore/Models/Model/ModelRegistry.swift +++ b/MVMCore/MVMCore/Models/Model/ModelRegistry.swift @@ -211,7 +211,7 @@ public struct ModelRegistry { public static func getCodingKey(for type: T.Type) throws -> AnyCodingKey { guard let category = getCategory(for: type) else { - throw ModelRegistry.Error.decoderOther(message: "decodeModelsIfPresent only works for objects implementing the ModelProtocol protocol") + throw ModelRegistry.Error.decoderOther(message: "Category hasn’t been registered for the CodingKey for this type: \(String(describing: type.self))") } return AnyCodingKey(category.codingKey)