add missing event data

This commit is contained in:
Kyle Matthew Hedden 2023-01-26 19:03:10 -05:00
parent 08a1718f11
commit 3e9d66e5e0
2 changed files with 3 additions and 1 deletions

View File

@ -114,6 +114,7 @@ public protocol MVMCoreJSONActionHandlerProtocol: MVMCoreActionHandlerProtocol {
throw ActionError.unknownAction(type: model.actionType)
}
} catch {
MVMCoreLoggingHandler.shared()?.logCoreEvent(.actionFailed(name: model.actionType, pageType: pageType(from: delegateObject), uuid: uuid, error: error))
MVMCoreActionHandler.log(string: "Failed Action \(error)", additionalData: additionalData)
throw error
}

View File

@ -40,7 +40,8 @@ public enum MVMCoreEvent {
case actionFailed(
name: String,
pageType: String,
uuid: String
uuid: String,
error: Error?
)
/// The action is completed.