add info to error message (fix 14186) (#14368)

* add info to error message

* changes file and  linux only warning

Signed-off-by: Krzysztof Andrelczyk <cristof@curiana.net>

* Update change file

---------

Signed-off-by: Krzysztof Andrelczyk <cristof@curiana.net>
Co-authored-by: Tony <legendmastertony@gmail.com>
This commit is contained in:
kandrelczyk
2025-10-28 08:03:48 +01:00
committed by GitHub
parent 67c7418c06
commit fc017ee257
2 changed files with 9 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
'tauri-bundler': 'patch:enhance'
---
Mention symbol stripping on Linux in binary patch failed warning message

View File

@@ -99,6 +99,10 @@ pub enum Error {
#[error("Wrong package type {0} for platform {1}")]
InvalidPackageType(String, String),
/// Bundle type symbol missing in binary
#[cfg(target_os = "linux")]
#[error("__TAURI_BUNDLE_TYPE variable not found in binary. Make sure tauri crate and tauri-cli are up to date and that symbol stripping is disabled (https://doc.rust-lang.org/cargo/reference/profiles.html#strip)")]
MissingBundleTypeVar,
#[cfg(not(target_os = "linux"))]
#[error("__TAURI_BUNDLE_TYPE variable not found in binary. Make sure tauri crate and tauri-cli are up to date")]
MissingBundleTypeVar,
/// Failed to write binary file changed