diff --git a/src/macos.rs b/src/macos.rs index 063f238..ace1e8c 100644 --- a/src/macos.rs +++ b/src/macos.rs @@ -162,7 +162,7 @@ fn delete_using_finder(full_paths: Vec) -> Result<(), Error> { Some(code) => { return Err(Error::Os { - code: result.status.code(), + code, description: format!("The AppleScript exited with error. stderr: {}", stderr), }) }