Skip to content

Commit ba71eb2

Browse files
authored
Update dump.swift
print error
1 parent 094b342 commit ba71eb2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Sources/appdecrypt/dump.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,16 @@ class Dump {
4444
}
4545
#endif
4646
do {
47+
consoleIO.writeMessage("Copy From \(sourceUrl) to \(targetUrl)")
4748
if fileManager.fileExists(atPath: targetUrl) {
4849
// remove old files to ensure the integrity of the dump
4950
try fileManager.removeItem(atPath: targetUrl)
50-
consoleIO.writeMessage("Success to remove old files.")
51+
consoleIO.writeMessage("Success to remove \(targetUrl)")
5152
}
5253
try fileManager.copyItem(atPath: sourceUrl, toPath: targetUrl)
5354
consoleIO.writeMessage("Success to copy file.")
54-
} catch {
55-
consoleIO.writeMessage("Failed to copy file.", to: .error)
55+
} catch let e {
56+
consoleIO.writeMessage("Failed With \(e)", to: .error)
5657
}
5758

5859
var needDumpFilePaths = [String]()

0 commit comments

Comments
 (0)