Skip to content

Commit b3d65c9

Browse files
committed
fixed recursive tailscale_error_msg
1 parent 134bba0 commit b3d65c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/tsnet/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ fn tailscale_error_msg(server: TailscaleBinding) -> Result<String, String> {
534534
};
535535

536536
if result != 0 {
537-
return Err(tailscale_error_msg(server)?);
537+
return Err("Unknown error".to_string());
538538
}
539539

540540
let message = unsafe { CStr::from_ptr(buffer.as_ptr() as *const c_char) };

0 commit comments

Comments
 (0)