nikivdev/code · error
pbcopy exited with status {}
Error message
pbcopy exited with status {} What it means
Error "pbcopy exited with status {}" thrown in nikivdev/code.
Source
Thrown at src/failure.rs:757
fn copy_to_clipboard(text: &str) -> Result<bool> {
if std::env::var("FLOW_NO_CLIPBOARD").is_ok() {
return Ok(false);
}
#[cfg(target_os = "macos")]
{
let mut child = Command::new("pbcopy")
.stdin(Stdio::piped())
.spawn()
.context("failed to spawn pbcopy")?;
if let Some(stdin) = child.stdin.as_mut() {
stdin.write_all(text.as_bytes())?;
}
let status = child.wait()?;
if !status.success() {
bail!("pbcopy exited with status {}", status);
}
}
#[cfg(target_os = "linux")]
{
let result = Command::new("xclip")
.arg("-selection")
.arg("clipboard")
.stdin(Stdio::piped())
.spawn();
let mut child = match result {
Ok(child) => child,
Err(_) => Command::new("xsel")
.arg("--clipboard")
.arg("--input")
.stdin(Stdio::piped())
.spawn()View on GitHub (pinned to a747e741ae)
When it happens
Trigger: Thrown at src/failure.rs:757 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of nikivdev/code@a747e741ae (2026-09-01).
Data as JSON: /api/errors/7722aac64305799f.
Report an issue: GitHub.