fix(error): migrate notifications.rs + message-adapters error handling

This commit is contained in:
Hibryda 2026-03-18 01:22:30 +01:00
parent 1978475766
commit d582a1d26c
2 changed files with 5 additions and 2 deletions

View file

@ -1,8 +1,10 @@
// Notification commands — desktop notification via notify-rust
use crate::error::AppError;
use crate::notifications;
#[tauri::command]
pub fn notify_desktop(title: String, body: String, urgency: String) -> Result<(), String> {
pub fn notify_desktop(title: String, body: String, urgency: String) -> Result<(), AppError> {
notifications::send_desktop_notification(&title, &body, &urgency)
.map_err(AppError::internal)
}