Skip to content

Commit f133fb1

Browse files
committed
fix(tauri): deep linking breaking due to specta export
Aaaaaaa spent an hour on this, problem was that it was panicking trying to export to a path relative to the executable which is protected by the os.
1 parent 3f44d5b commit f133fb1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src-tauri/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub fn run() {
2525
Typescript::default().header("/* eslint-disable */"),
2626
"../src/app/generated/tauri.ts",
2727
)
28-
.expect("Failed to export tauri-specta bindings");
28+
.unwrap_or_else(|e| eprintln!("Warning: Failed to export tauri-specta bindings: {e}"));
2929

3030
let invoke_handler = specta_builder.invoke_handler();
3131

0 commit comments

Comments
 (0)