mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
14 lines
279 B
Swift
14 lines
279 B
Swift
//
|
|
// Error+Message.swift
|
|
// SideStore
|
|
//
|
|
// Created by naturecodevoid on 5/30/23.
|
|
// Copyright © 2023 SideStore. All rights reserved.
|
|
//
|
|
|
|
extension Error {
|
|
func message() -> String {
|
|
(self as? LocalizedError)?.failureReason ?? self.localizedDescription
|
|
}
|
|
}
|