Add more detailed error for remove_file (#41147)

Julia Ryan created

This should help us debug #40958.

Release Notes:

- N/A

Change summary

crates/auto_update_helper/src/updater.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

crates/auto_update_helper/src/updater.rs 🔗

@@ -197,7 +197,7 @@ pub(crate) fn perform_update(app_dir: &Path, hwnd: Option<isize>, launch: bool)
                         break;
                     }
 
-                    log::error!("Operation failed: {}", err);
+                    log::error!("Operation failed: {} ({:?})", err, io_err.kind());
                     std::thread::sleep(Duration::from_millis(50));
                 }
             }