aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/screen.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-09-01 22:56:41 -0700
committerGitHub <noreply@github.com>2019-09-01 22:56:41 -0700
commit099445cc07b0154edc6ecd562a28e86c87c0096b (patch)
treebb539bd3877fc0545b1c7db13039b357477e5758 /test/functional/ui/screen.lua
parent7bb029eeef65f57d94cef4e4b709e6c3ebefcf08 (diff)
parentead39d6ce6d1c5e5b6130c6823d071889c207bde (diff)
downloadrneovim-099445cc07b0154edc6ecd562a28e86c87c0096b.tar.gz
rneovim-099445cc07b0154edc6ecd562a28e86c87c0096b.tar.bz2
rneovim-099445cc07b0154edc6ecd562a28e86c87c0096b.zip
Merge #10804 'CI/OpenBSD: functional tests'
Diffstat (limited to 'test/functional/ui/screen.lua')
-rw-r--r--test/functional/ui/screen.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/functional/ui/screen.lua b/test/functional/ui/screen.lua
index 02be714e0d..0e3b903398 100644
--- a/test/functional/ui/screen.lua
+++ b/test/functional/ui/screen.lua
@@ -615,7 +615,12 @@ function Screen:_redraw(updates)
local handler_name = '_handle_'..method
local handler = self[handler_name]
if handler ~= nil then
- handler(self, unpack(update[i]))
+ local status, res = pcall(handler, self, unpack(update[i]))
+ if not status then
+ error(handler_name..' failed'
+ ..'\n payload: '..inspect(update)
+ ..'\n error: '..tostring(res))
+ end
else
assert(self._on_event,
"Add Screen:"..handler_name.." or call Screen:set_on_event_handler")