Skip to content

Commit fc017ee

Browse files
add info to error message (fix 14186) (#14368)
* add info to error message * changes file and linux only warning Signed-off-by: Krzysztof Andrelczyk <[email protected]> * Update change file --------- Signed-off-by: Krzysztof Andrelczyk <[email protected]> Co-authored-by: Tony <[email protected]>
1 parent 67c7418 commit fc017ee

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.changes/bundler-warning.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'tauri-bundler': 'patch:enhance'
3+
---
4+
5+
Mention symbol stripping on Linux in binary patch failed warning message

crates/tauri-bundler/src/error.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ pub enum Error {
9999
#[error("Wrong package type {0} for platform {1}")]
100100
InvalidPackageType(String, String),
101101
/// Bundle type symbol missing in binary
102+
#[cfg(target_os = "linux")]
103+
#[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)")]
104+
MissingBundleTypeVar,
105+
#[cfg(not(target_os = "linux"))]
102106
#[error("__TAURI_BUNDLE_TYPE variable not found in binary. Make sure tauri crate and tauri-cli are up to date")]
103107
MissingBundleTypeVar,
104108
/// Failed to write binary file changed

0 commit comments

Comments
 (0)