0.7.37 forgotten one
This commit is contained in:
@@ -49,7 +49,7 @@ struct AppState {
|
||||
|
||||
/// Runs the desktop application.
|
||||
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
||||
pub async fn run() -> Result<(), kb_lib::KhError> {
|
||||
pub async fn run() -> Result<(), kb_lib::Error> {
|
||||
let config_path = kb_lib::Config::default_path();
|
||||
let config_result = kb_lib::Config::load_from_path(&config_path);
|
||||
let config = match config_result {
|
||||
@@ -222,7 +222,7 @@ pub async fn run() -> Result<(), kb_lib::KhError> {
|
||||
let run_result = tauri_builder.run(tauri::generate_context!());
|
||||
if let Err(error) = run_result {
|
||||
tracing::error!("error while running tauri application: {error:?}");
|
||||
return Err(kb_lib::KhError::InvalidState(format!(
|
||||
return Err(kb_lib::Error::InvalidState(format!(
|
||||
"error while running tauri application: {error:?}"
|
||||
)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user