awful.util: fix wrong variable
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
c3775199b0
commit
da2f473386
|
@ -117,7 +117,7 @@ end
|
||||||
-- @return A function if everything is alright, a string with the error
|
-- @return A function if everything is alright, a string with the error
|
||||||
-- otherwise.
|
-- otherwise.
|
||||||
function checkfile(path)
|
function checkfile(path)
|
||||||
local f, e = loadfile(s)
|
local f, e = loadfile(path)
|
||||||
-- Return function if function, otherwise return error.
|
-- Return function if function, otherwise return error.
|
||||||
if f then return f end
|
if f then return f end
|
||||||
return e
|
return e
|
||||||
|
|
Loading…
Reference in New Issue