diff --git a/src/bin/proxmox-backup-proxy.rs b/src/bin/proxmox-backup-proxy.rs index b75cc763..3362fee3 100644 --- a/src/bin/proxmox-backup-proxy.rs +++ b/src/bin/proxmox-backup-proxy.rs @@ -20,13 +20,10 @@ use proxmox_backup::tools::disks::{ DiskManage, zfs_pool_stats }; use proxmox_backup::api2::pull::do_sync_job; -fn main() { +fn main() -> Result<(), Error> { proxmox_backup::tools::setup_safe_path_env(); - if let Err(err) = proxmox_backup::tools::runtime::main(run()) { - eprintln!("Error: {}", err); - std::process::exit(-1); - } + proxmox_backup::tools::runtime::main(run()) } async fn run() -> Result<(), Error> {