fix: server function custom errors set status codes (#4782)

* fix: handling status codes from errors

* add demo

* clippy + check

* fix clippy again
This commit is contained in:
Jonathan Kelley authored and GitHub committed 2025-10-13 16:02:33 -07:00
1 parent fc069f0faf
commit 8f6e7dc1f2
9 files changed
+356 -44

No files matched your search

+2 -2
View File
@@ -10,9 +10,9 @@ impl NavigationProvider for DioxusNativeNavigationProvider {
if options.method == Method::GET
&& matches!(options.url.scheme(), "http" | "https" | "mailto")
{
if let Err(err) = webbrowser::open(options.url.as_str()) {
if let Err(_err) = webbrowser::open(options.url.as_str()) {
#[cfg(feature = "tracing")]
tracing::error!("Failed to open URL: {}", err);
tracing::error!("Failed to open URL: {}", _err);
}
}
}