From edbf254c5180333aef0e83ad9219c30e3eb8d2fe Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Sun, 9 Feb 2020 19:38:47 -0500 Subject: [PATCH] naughty.box: Have a better error message when an invalid position is set --- lib/naughty/layout/box.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/naughty/layout/box.lua b/lib/naughty/layout/box.lua index ea97344e..ecbc365f 100644 --- a/lib/naughty/layout/box.lua +++ b/lib/naughty/layout/box.lua @@ -238,7 +238,7 @@ local function init(self, notification) assert(s) -- Add the notification to the active list - assert(init_screen(s)[position]) + assert(init_screen(s)[position], "Invalid position "..position) self:_apply_size_now()