naughty.box: Have a better error message when an invalid position is set

This commit is contained in:
Emmanuel Lepage Vallee 2020-02-09 19:38:47 -05:00
parent 816188163a
commit edbf254c51
1 changed files with 1 additions and 1 deletions

View File

@ -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()