naughty.box: Have a better error message when an invalid position is set
This commit is contained in:
parent
816188163a
commit
edbf254c51
|
@ -238,7 +238,7 @@ local function init(self, notification)
|
||||||
assert(s)
|
assert(s)
|
||||||
|
|
||||||
-- Add the notification to the active list
|
-- Add the notification to the active list
|
||||||
assert(init_screen(s)[position])
|
assert(init_screen(s)[position], "Invalid position "..position)
|
||||||
|
|
||||||
self:_apply_size_now()
|
self:_apply_size_now()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue