Skip to content

Commit

Permalink
fix(cli): add notarize error (#10639)
Browse files Browse the repository at this point in the history
* fix: add notarize error

* add change file
  • Loading branch information
lucasfernog authored Aug 15, 2024
1 parent 8902dd8 commit f712f31
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changes/add-notarize-error.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"tauri-cli": patch:bug
"@tauri-apps/cli": patch:bug
---

Include notarization error output in the error message if it fails.
5 changes: 4 additions & 1 deletion tooling/macos-sign/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@ pub fn notarize(
.context("failed to upload app to Apple's notarization servers.")?;

if !output.status.success() {
return Err(anyhow::anyhow!("failed to notarize app"));
return Err(
anyhow::anyhow!("failed to notarize app")
.context(String::from_utf8_lossy(&output.stderr).into_owned()),
);
}

let output_str = String::from_utf8_lossy(&output.stdout);
Expand Down

0 comments on commit f712f31

Please sign in to comment.