summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/config/input.rs2
-rw-r--r--src/utils/clipboard.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/config/input.rs b/src/config/input.rs
index c527cfb..d72743a 100644
--- a/src/config/input.rs
+++ b/src/config/input.rs
@@ -90,7 +90,7 @@ impl Input {
texts.push(String::new());
}
for (path, contents) in files {
- texts.push(format!("`{path}`:\n\n{contents}\n"));
+ texts.push(format!("====== PATH: {path} ======\n{contents}\n"));
}
let (role, with_session, with_agent) = resolve_role(&config.read(), role);
Ok(Self {
diff --git a/src/utils/clipboard.rs b/src/utils/clipboard.rs
index c4444e3..23bb4f3 100644
--- a/src/utils/clipboard.rs
+++ b/src/utils/clipboard.rs
@@ -13,12 +13,12 @@ pub fn set_text(text: &str) -> anyhow::Result<()> {
#[cfg(target_os = "linux")]
std::thread::sleep(std::time::Duration::from_millis(50));
}
- None => anyhow::bail!("Failed to copy the text; no available clipboard"),
+ None => return Err(anyhow::anyhow!("No clipboard available").context("Failed to copy")),
}
Ok(())
}
#[cfg(any(target_os = "android", target_os = "emscripten"))]
pub fn set_text(_text: &str) -> anyhow::Result<()> {
- anyhow::bail!("Failed to copy the text; no available clipboard")
+ Err(anyhow::anyhow!("No clipboard available").context("Failed to copy"))
}