diff --git a/MVMCore/MVMCore/ActionHandling/ActionOpenUrlHandler.swift b/MVMCore/MVMCore/ActionHandling/ActionOpenUrlHandler.swift index 5ed9d2d..085b9a4 100644 --- a/MVMCore/MVMCore/ActionHandling/ActionOpenUrlHandler.swift +++ b/MVMCore/MVMCore/ActionHandling/ActionOpenUrlHandler.swift @@ -40,6 +40,10 @@ open class ActionOpenUrlHandler: MVMCoreJSONActionHandlerProtocol { return "Failed to open url: \(url.absoluteString)" } } + + public var errorCode: Int { + return ErrorCode.linkawayFailed.rawValue + } } /// Creates a url and calls open(url: URL) diff --git a/MVMCore/MVMCore/Models/JSON/JSONHelper.swift b/MVMCore/MVMCore/Models/JSON/JSONHelper.swift index 775048d..857310b 100644 --- a/MVMCore/MVMCore/Models/JSON/JSONHelper.swift +++ b/MVMCore/MVMCore/Models/JSON/JSONHelper.swift @@ -37,8 +37,9 @@ extension JSONError: LocalizedError, CustomStringConvertible { } } + // Shown to customers. public var errorDescription: String? { - return description + return MVMCoreGetterUtility.hardcodedString(withKey: HardcodedErrorUnableToProcess) } }