ソースを参照

Merge pull request #28753 from overleaf/em-debug-revert-file

Log debug info when file not found while reverting

GitOrigin-RevId: 944db8d61a68612325a733151616ff37298dc699
Eric Mc Sween 10 ヶ月 前
コミット
414fc3cdb3
1 ファイル変更5 行追加1 行削除
  1. 5 1
      services/web/app/src/Features/History/RestoreManager.mjs

+ 5 - 1
services/web/app/src/Features/History/RestoreManager.mjs

@@ -136,7 +136,11 @@ const RestoreManager = {
 
     const snapshotFile = projectSnapshotAtVersion.getFile(pathname)
     if (!snapshotFile) {
-      throw new OError('file not found in snapshot', { pathname })
+      throw new OError('file not found in snapshot', {
+        projectId,
+        version,
+        pathname,
+      })
     }
 
     let hadDeletedRootFile = false