mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Fixing issue when there are errors writing the .betaId file
This commit is contained in:
@@ -309,6 +309,11 @@ impl VelopackLocator {
|
||||
}
|
||||
let new_id = Uuid::new_v4();
|
||||
std::fs::write(&beta_id_path, &new_id).expect("Unable to write .betaId file");
|
||||
if let Err(_e) = std::fs::write(&beta_id_path, &new_id) {
|
||||
warn!("Couldn't write out staging userId.");
|
||||
} else {
|
||||
info!("Generated new staging userId: {}", new_id.to_string());
|
||||
}
|
||||
new_id.to_string()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user