Skip to content

Commit

Permalink
chore: improve error/warn messages
Browse files Browse the repository at this point in the history
  • Loading branch information
haberdashPI committed Jul 28, 2021
1 parent 1413455 commit 1866f6b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Alert.jl
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,9 @@ function init_alert_backends()
elseif !isnothing(Sys.which("xmessage"))
message -> run(`xmessage $message`)
else
@error("There is no program for displaying notifications available, install"*
" 'notify-send', 'zenity', 'kdialog' or 'xmessage'; otherwise, messages "*
"sent by `alert` will not display.")
message -> error("No alert backend installed! "*
"Reload julia and read your error messages.")
@warn("The `alert` method has no available local backend (call `alert()` for details).")
message -> error("No viable messaging program available, install"*
" 'notify-send', 'zenity', 'kdialog' or 'xmessage'.")
end
elseif Sys.iswindows()
win_toast
Expand Down

0 comments on commit 1866f6b

Please sign in to comment.