From 7cabc4032c2669b7af5b4241d25c24d2403bceb0 Mon Sep 17 00:00:00 2001 From: Guldoman Date: Sun, 29 Aug 2021 05:07:12 +0200 Subject: [PATCH] Avoid trying to `require` an unregistered `View` module --- data/plugins/workspace.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/plugins/workspace.lua b/data/plugins/workspace.lua index fe8a0096..84be8778 100644 --- a/data/plugins/workspace.lua +++ b/data/plugins/workspace.lua @@ -90,7 +90,7 @@ local function load_view(t) t.type = nil return class.from_content and class.from_content(t) end - return require(t.module)() -- FIXME: is this needed? If a class is not registered, it should not be loaded + core.error("Could not restore view %q", t.type) end