mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
handle exceptions in sample and add more logging
This commit is contained in:
@@ -59,6 +59,7 @@ where
|
||||
Ok(_) => true,
|
||||
Err(e) => {
|
||||
*last_error = format!("{:?}", e);
|
||||
log::error!("{:?}", e);
|
||||
false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -460,7 +460,10 @@ impl UpdateManager {
|
||||
|
||||
let mut p = Process::new(&self.locator.get_update_path());
|
||||
p.args(&args);
|
||||
p.current_dir(&self.locator.get_root_dir());
|
||||
|
||||
if let Some(update_exe_parent) = self.locator.get_update_path().parent() {
|
||||
p.current_dir(update_exe_parent);
|
||||
}
|
||||
|
||||
#[cfg(target_os = "windows")]
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user