feat: portable version of hoppscotch-agent (#4468)
This commit is contained in:
15
packages/hoppscotch-agent/src-tauri/src/webview/error.rs
Normal file
15
packages/hoppscotch-agent/src-tauri/src/webview/error.rs
Normal file
@@ -0,0 +1,15 @@
|
||||
use std::io;
|
||||
|
||||
use thiserror::Error;
|
||||
|
||||
#[derive(Error, Debug)]
|
||||
pub enum WebViewError {
|
||||
#[error("Failed to open URL: {0}")]
|
||||
UrlOpen(#[from] io::Error),
|
||||
#[error("Failed to download WebView2 installer: {0}")]
|
||||
Download(String),
|
||||
#[error("WebView2 installation failed: {0}")]
|
||||
Installation(String),
|
||||
#[error("Failed during request: {0}")]
|
||||
Request(#[from] tauri_plugin_http::reqwest::Error),
|
||||
}
|
||||
Reference in New Issue
Block a user