Skip to content

Commit e9f9b80

Browse files
committed
fix: correctly display and adjust error messages
1 parent a922eae commit e9f9b80

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

xcode/App-Shared/ViewController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ extension ViewController: UIDocumentPickerDelegate {
300300
logger?.error("\(#function, privacy: .public) - Export failed: \(error)")
301301
let alert = UIAlertController(
302302
title: "Export failed",
303-
message: error.localizedDescription,
303+
message: "\(error)",
304304
preferredStyle: .alert
305305
)
306306
alert.addAction(UIAlertAction(title: "OK", style: .default))

xcode/Shared/Logger.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ func USLogFilesExportTo(_ directory: URL) throws -> URL {
190190
enum errType: String {
191191
case notDirectory = "Not a directory URL"
192192
case logDirURLNil = "Failed get logDirURL"
193-
case noLogDir = "Log directory does not exist"
194-
case noLogFiles = "The log directory is empty"
193+
case noLogDir = "The log is not ready, please try again later (d)"
194+
case noLogFiles = "The log is not ready, please try again later (f)"
195195
case exportFailed = "Export failed"
196196
}
197197
let type: errType

0 commit comments

Comments
 (0)