File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -44,15 +44,16 @@ class Dump {
44
44
}
45
45
#endif
46
46
do {
47
+ consoleIO. writeMessage ( " Copy From \( sourceUrl) to \( targetUrl) " )
47
48
if fileManager. fileExists ( atPath: targetUrl) {
48
49
// remove old files to ensure the integrity of the dump
49
50
try fileManager. removeItem ( atPath: targetUrl)
50
- consoleIO. writeMessage ( " Success to remove old files. " )
51
+ consoleIO. writeMessage ( " Success to remove \( targetUrl ) " )
51
52
}
52
53
try fileManager. copyItem ( atPath: sourceUrl, toPath: targetUrl)
53
54
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)
56
57
}
57
58
58
59
var needDumpFilePaths = [ String] ( )
You can’t perform that action at this time.
0 commit comments