From 9d364a6fbcb87bc08949ef81e1fbdb6c87f10950 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 26 Jun 2014 17:57:15 +0200 Subject: [PATCH] gluon-alfred: some announce.lua cleanup --- gluon/gluon-alfred/files/lib/gluon/alfred/announce.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gluon/gluon-alfred/files/lib/gluon/alfred/announce.lua b/gluon/gluon-alfred/files/lib/gluon/alfred/announce.lua index f93a7d1..23b3cd2 100755 --- a/gluon/gluon-alfred/files/lib/gluon/alfred/announce.lua +++ b/gluon/gluon-alfred/files/lib/gluon/alfred/announce.lua @@ -26,8 +26,8 @@ function collect_dir(dir) for _, entry in ipairs(fs.dir(dir)) do if entry:sub(1, 1) ~= '.' then - err, val = pcall(collect_entry, dir .. '/' .. entry) - if err then + local ok, val = pcall(collect_entry, dir .. '/' .. entry) + if ok then ret[entry] = val else io.stderr:write(val, '\n')