From 76266abcfa636cc6e8e54aeb85ed96d557411cb8 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 17 Apr 2016 15:21:02 +0200 Subject: [PATCH] naughty: Print notification content in "no screen" warning Signed-off-by: Uli Schlachter --- lib/naughty/core.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/naughty/core.lua b/lib/naughty/core.lua index f28c95dd..4f04f67f 100644 --- a/lib/naughty/core.lua +++ b/lib/naughty/core.lua @@ -439,8 +439,9 @@ function naughty.notify(args) local title = args.title or preset.title local s = get_screen(args.screen or preset.screen or screen.focused()) if not s then - require("gears.debug").print_warning( - "naughty.notify: there is no screen available to display the notification.") + local err = "naughty.notify: there is no screen available to display the following notification:" + err = string.format("%s title='%s' text='%s'", err, tostring(title or ""), tostring(text or "")) + require("gears.debug").print_warning(err) return end local ontop = args.ontop or preset.ontop