naughty: Print notification content in "no screen" warning
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
3e75e800ad
commit
76266abcfa
|
@ -439,8 +439,9 @@ function naughty.notify(args)
|
||||||
local title = args.title or preset.title
|
local title = args.title or preset.title
|
||||||
local s = get_screen(args.screen or preset.screen or screen.focused())
|
local s = get_screen(args.screen or preset.screen or screen.focused())
|
||||||
if not s then
|
if not s then
|
||||||
require("gears.debug").print_warning(
|
local err = "naughty.notify: there is no screen available to display the following notification:"
|
||||||
"naughty.notify: there is no screen available to display the notification.")
|
err = string.format("%s title='%s' text='%s'", err, tostring(title or ""), tostring(text or ""))
|
||||||
|
require("gears.debug").print_warning(err)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local ontop = args.ontop or preset.ontop
|
local ontop = args.ontop or preset.ontop
|
||||||
|
|
Loading…
Reference in New Issue