Skip to content

Commit 585f0f2

Browse files
committed
shutdown client when it can't find dependencies
1 parent cabf5ac commit 585f0f2

File tree

1 file changed

+2
-2
lines changed
  • src-tauri/cli/src/bin

1 file changed

+2
-2
lines changed

src-tauri/cli/src/bin/dg.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,9 @@ async fn connect(config: CliConfig, trigger: Arc<Notify>) -> Result<(), CliError
155155

156156
// let wgapi = setup_wgapi(&ifname).expect("Failed to setup WireGuard API");
157157
#[cfg(not(target_os = "macos"))]
158-
let wgapi = WGApi::<Kernel>::new(ifname.to_string())?;
158+
let wgapi = WGApi::<Kernel>::new(ifname.to_string()).expect("Failed to setup WireGuard API");
159159
#[cfg(target_os = "macos")]
160-
let wgapi = WGApi::<Userspace>::new(ifname.to_string())?;
160+
let wgapi = WGApi::<Userspace>::new(ifname.to_string()).expect("Failed to setup WireGuard API");
161161

162162
#[cfg(not(windows))]
163163
{

0 commit comments

Comments
 (0)