Avoid trying to `require` an unregistered `View` module

This commit is contained in:
Guldoman 2021-08-29 05:07:12 +02:00
parent ef0c093a61
commit 7cabc4032c
No known key found for this signature in database
GPG Key ID: C08A498EC7F1AFDD
1 changed files with 1 additions and 1 deletions

View File

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