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:
1 parent
fc069f0faf
commit
8f6e7dc1f2
9 files changed
+356
-44
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user