mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
fix: provide specific error message when notify-send is not installed
This commit is contained in:
parent
17adbc405a
commit
814040a62e
1 changed files with 6 additions and 1 deletions
|
|
@ -60,7 +60,12 @@ async function showLinuxNotification(options: NotificationOptions): Promise<void
|
|||
|
||||
try {
|
||||
await execa("notify-send", [title, fullMessage])
|
||||
} catch (error) {
|
||||
} catch (error: any) {
|
||||
if (error.code === "ENOENT") {
|
||||
throw new Error(
|
||||
"notify-send is not installed. Please install libnotify-bin (apt install libnotify-bin on Debian/Ubuntu)",
|
||||
)
|
||||
}
|
||||
throw new Error(`Failed to show Linux notification: ${error}`)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue