Prevent double logging and double error popup.

This commit is contained in:
Kyle Matthew Hedden 2023-03-13 19:45:58 -04:00
parent 4799c3fcbb
commit ab0c13efaf

View File

@ -132,6 +132,7 @@ public protocol MVMCoreJSONActionHandlerProtocol: MVMCoreActionHandlerProtocol {
@objc open func defaultHandleActionError(_ error: MVMCoreErrorObject, additionalData: [AnyHashable: Any]?) { @objc open func defaultHandleActionError(_ error: MVMCoreErrorObject, additionalData: [AnyHashable: Any]?) {
guard error.logError else { return } guard error.logError else { return }
MVMCoreLoggingHandler.addError(toLog: error) MVMCoreLoggingHandler.addError(toLog: error)
error.logError = false // Further attempts to log the same error will be skipped. (Legacy action flow.)
} }
// MARK: - Legacy Holdovers // MARK: - Legacy Holdovers