You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Simplified/Reader2/ReaderPresentation/ReaderError.swift
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -14,15 +14,16 @@ import Foundation
14
14
15
15
enumReaderError:LocalizedError{
16
16
case formatNotSupported
17
-
case epubNotValid
18
-
17
+
case epubNotValid(String)
18
+
19
19
varerrorDescription:String?{
20
20
switchself{
21
21
case.formatNotSupported:
22
22
returnNSLocalizedString("The book you were trying to read is in an unsupported format.", comment:"Error message when trying to read a publication with a unsupported format")
23
-
case.epubNotValid:
24
-
returnNSLocalizedString("The book you were trying to read is corrupted. Please try downloading it again.", comment:"Error message when trying to read an EPUB that is invalid")
23
+
case.epubNotValid(let errorCause):
24
+
returnString.localizedStringWithFormat(
25
+
NSLocalizedString("The book you were trying to read is corrupted (%@). Please try downloading it again.", comment:"Error message when trying to read an EPUB that is invalid"),
0 commit comments