fix(cli): add notarize error (#10639)

* fix: add notarize error

* add change file
This commit is contained in:
Lucas Fernandes Nogueira 2024-08-15 14:12:03 -03:00 committed by GitHub
parent 8902dd8137
commit f712f31d1d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 1 deletions

View File

@ -0,0 +1,6 @@
---
"tauri-cli": patch:bug
"@tauri-apps/cli": patch:bug
---
Include notarization error output in the error message if it fails.

View File

@ -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);