From 66b4aedd087299751fa39c2b54dace6babcb3ac6 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 7 Dec 2018 18:35:06 +0100 Subject: Make strings consistent Signed-off-by: Jason A. Donenfeld --- WireGuard/WireGuard/UI/iOS/SettingsTableViewController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'WireGuard/WireGuard/UI/iOS/SettingsTableViewController.swift') diff --git a/WireGuard/WireGuard/UI/iOS/SettingsTableViewController.swift b/WireGuard/WireGuard/UI/iOS/SettingsTableViewController.swift index 609fa2e..6623f79 100644 --- a/WireGuard/WireGuard/UI/iOS/SettingsTableViewController.swift +++ b/WireGuard/WireGuard/UI/iOS/SettingsTableViewController.swift @@ -94,7 +94,7 @@ class SettingsTableViewController: UITableViewController { let dateFormatter = ISO8601DateFormatter() dateFormatter.formatOptions = [.withFullDate, .withTime, .withTimeZone] // Avoid ':' in the filename let timeStampString = dateFormatter.string(from: Date()) - let destinationURL = destinationDir.appendingPathComponent("WireGuard_iOS_log_\(timeStampString).txt") + let destinationURL = destinationDir.appendingPathComponent("wireguard-log-\(timeStampString).txt") if (FileManager.default.fileExists(atPath: destinationURL.path)) { let isDeleted = FileManager.deleteFile(at: destinationURL) @@ -114,7 +114,7 @@ class SettingsTableViewController: UITableViewController { try FileManager.default.copyItem(at: networkExtensionLogFileURL, to: destinationURL) } catch { os_log("Failed to copy file: %{public}@ to %{public}@: %{public}@", log: OSLog.default, type: .error, networkExtensionLogFileURL.absoluteString, destinationURL.absoluteString, error.localizedDescription) - ErrorPresenter.showErrorAlert(title: "No log available", message: "The log could not be accessed", from: self) + ErrorPresenter.showErrorAlert(title: "Log export failed", message: "The log could not be copied", from: self) return } -- cgit v1.2.3-59-g8ed1b