fix(error): migrate notifications.rs + message-adapters error handling
This commit is contained in:
parent
1978475766
commit
d582a1d26c
2 changed files with 5 additions and 2 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue