Skip to content

Commit f712f31

Browse files
authored
fix(cli): add notarize error (#10639)
* fix: add notarize error * add change file
1 parent 8902dd8 commit f712f31

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.changes/add-notarize-error.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"tauri-cli": patch:bug
3+
"@tauri-apps/cli": patch:bug
4+
---
5+
6+
Include notarization error output in the error message if it fails.

tooling/macos-sign/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@ pub fn notarize(
9898
.context("failed to upload app to Apple's notarization servers.")?;
9999

100100
if !output.status.success() {
101-
return Err(anyhow::anyhow!("failed to notarize app"));
101+
return Err(
102+
anyhow::anyhow!("failed to notarize app")
103+
.context(String::from_utf8_lossy(&output.stderr).into_owned()),
104+
);
102105
}
103106

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

0 commit comments

Comments
 (0)