Skip to content

Commit

Permalink
refactor: adopt anyhow::bail!
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanccn committed Nov 8, 2023
1 parent 5f55303 commit 0dc6b51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/music/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pub async fn tell_raw(applescript: &[&str]) -> Result<String> {
let stderr = String::from_utf8_lossy(&output.stderr).trim().to_string();

if !success {
return Err(anyhow!(stderr));
anyhow::bail!(stderr);
}

Ok(stdout)
Expand Down

0 comments on commit 0dc6b51

Please sign in to comment.