0.7.37 forgotten one

This commit is contained in:
2026-05-10 00:33:36 +02:00
parent 1f0137b9de
commit d66afede28

View File

@@ -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:?}"
)));
}