Browse Source

Include symlink target in warning message when skipping

Tor Arne Vestbø 5 năm trước cách đây
mục cha
commit
981cf040c5
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      tools/reports/backup/files.js

+ 2 - 2
tools/reports/backup/files.js

@@ -117,16 +117,16 @@ function extractFiles (backup, destination, filter, items) {
     }
 
     try {
+      var filePath = path.join(item.domain, item.filename)
       var stat = new Mode(item)
 
       if (stat.isSymbolicLink()) {
-        log.warning('skipping symlink', item.filename)
+        log.warning('skipping symlink', filePath, 'to', item.linktarget)
         // FIXME: Restore symlinks
         continue
       }
 
       // Calculate the output path
-      var filePath = path.join(item.domain, item.filename)
       var outPath = path.join(destination, filePath)
 
       if (stat.isDirectory()) {