Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Render error message (not pointer) (#28797)
Conrad Irwin6267a147ba45
diff --git a/crates/gpui/src/platform/mac/screen_capture.rs b/crates/gpui/src/platform/mac/screen_capture.rsindex ac2503bb20e..af5e02fc06c 100644--- a/crates/gpui/src/platform/mac/screen_capture.rs+++ b/crates/gpui/src/platform/mac/screen_capture.rs@@ -27,6 +27,8 @@ use objc::{};use std::{cell::RefCell, ffi::c_void, mem, ptr, rc::Rc};+use super::NSStringExt;+#[derive(Clone)]pub struct MacScreenCaptureSource {sc_display: id,@@ -184,7 +186,10 @@ pub(crate) fn get_sources() -> oneshot::Receiver<Result<Vec<Box<dyn ScreenCapturOk(result)} else {let msg: id = msg_send![error, localizedDescription];- Err(anyhow!("Failed to register: {:?}", msg))+ Err(anyhow!(+ "Screen share failed: {:?}",+ NSStringExt::to_str(&msg)+ ))};tx.send(result).ok();});