Add custom errors with thiserror, log thread id

This commit is contained in:
2026-02-03 23:02:44 +02:00
parent 2e5568fccb
commit f84d812602
8 changed files with 126 additions and 58 deletions

35
src-tauri/Cargo.lock generated
View File

@@ -497,7 +497,7 @@ dependencies = [
"semver",
"serde",
"serde_json",
"thiserror 2.0.17",
"thiserror 2.0.18",
]
[[package]]
@@ -2345,7 +2345,7 @@ dependencies = [
"once_cell",
"png",
"serde",
"thiserror 2.0.17",
"thiserror 2.0.18",
"windows-sys 0.60.2",
]
@@ -3310,7 +3310,7 @@ checksum = "a4e608c6638b9c18977b00b475ac1f28d14e84b27d8d42f70e0bf1e3dec127ac"
dependencies = [
"getrandom 0.2.16",
"libredox",
"thiserror 2.0.17",
"thiserror 2.0.18",
]
[[package]]
@@ -3460,6 +3460,7 @@ dependencies = [
"tauri-build",
"tauri-plugin-log",
"tauri-plugin-opener",
"thiserror 2.0.18",
]
[[package]]
@@ -4144,7 +4145,7 @@ dependencies = [
"tauri-runtime",
"tauri-runtime-wry",
"tauri-utils",
"thiserror 2.0.17",
"thiserror 2.0.18",
"tokio",
"tray-icon",
"url",
@@ -4196,7 +4197,7 @@ dependencies = [
"sha2",
"syn 2.0.111",
"tauri-utils",
"thiserror 2.0.17",
"thiserror 2.0.18",
"time",
"url",
"uuid",
@@ -4252,7 +4253,7 @@ dependencies = [
"swift-rs",
"tauri",
"tauri-plugin",
"thiserror 2.0.17",
"thiserror 2.0.18",
"time",
]
@@ -4272,7 +4273,7 @@ dependencies = [
"serde_json",
"tauri",
"tauri-plugin",
"thiserror 2.0.17",
"thiserror 2.0.18",
"url",
"windows",
"zbus",
@@ -4296,7 +4297,7 @@ dependencies = [
"serde",
"serde_json",
"tauri-utils",
"thiserror 2.0.17",
"thiserror 2.0.18",
"url",
"webkit2gtk",
"webview2-com",
@@ -4360,7 +4361,7 @@ dependencies = [
"serde_json",
"serde_with",
"swift-rs",
"thiserror 2.0.17",
"thiserror 2.0.18",
"toml 0.9.8",
"url",
"urlpattern",
@@ -4414,11 +4415,11 @@ dependencies = [
[[package]]
name = "thiserror"
version = "2.0.17"
version = "2.0.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f63587ca0f12b72a0600bcba1d40081f830876000bb46dd2337a3051618f4fc8"
checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4"
dependencies = [
"thiserror-impl 2.0.17",
"thiserror-impl 2.0.18",
]
[[package]]
@@ -4434,9 +4435,9 @@ dependencies = [
[[package]]
name = "thiserror-impl"
version = "2.0.17"
version = "2.0.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3ff15c8ecd7de3849db632e14d18d2571fa09dfc5ed93479bc4485c7a517c913"
checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5"
dependencies = [
"proc-macro2",
"quote",
@@ -4739,7 +4740,7 @@ dependencies = [
"once_cell",
"png",
"serde",
"thiserror 2.0.17",
"thiserror 2.0.18",
"windows-sys 0.60.2",
]
@@ -5113,7 +5114,7 @@ version = "0.38.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "36695906a1b53a3bf5c4289621efedac12b73eeb0b89e7e1a89b517302d5d75c"
dependencies = [
"thiserror 2.0.17",
"thiserror 2.0.18",
"windows",
"windows-core 0.61.2",
]
@@ -5623,7 +5624,7 @@ dependencies = [
"sha2",
"soup3",
"tao-macros",
"thiserror 2.0.17",
"thiserror 2.0.18",
"url",
"webkit2gtk",
"webkit2gtk-sys",