Skip to content

Commit 9caba5d

Browse files
committed
add error message
1 parent 782696f commit 9caba5d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lualib/layout.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ do
128128
function layout.load(filename_or_list, scripts)
129129
local list
130130
if type(filename_or_list) == "string" then
131-
list = datalist.parse_list(file.load(filename_or_list))
131+
list = datalist.parse_list(file.load(filename_or_list) or error ("Can't load " .. filename_or_list))
132132
else
133133
list = filename_or_list
134134
end

0 commit comments

Comments
 (0)