summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@gmail.com>2016-11-05 13:20:43 +0000
committerRichard Maw <richard.maw@gmail.com>2016-11-05 13:20:43 +0000
commit13537cc334a69a4309e2f1711fa93e6a7bd653f0 (patch)
tree477cee6a1bad66b4cb476fa763362faa843610af
parent421dfc564c22abdde273ca4216e12bab23ce4d7a (diff)
downloadluxio-13537cc334a69a4309e2f1711fa93e6a7bd653f0.tar.gz
luxio.simple: Don't try to call errno as a function
-rw-r--r--luxio/simple.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/luxio/simple.lua b/luxio/simple.lua
index 4493a28..f2ef5ba 100644
--- a/luxio/simple.lua
+++ b/luxio/simple.lua
@@ -1441,7 +1441,7 @@ end
local l_chdir = l.chdir
local function chdir(path)
- local r, err = l_chdir(path)
+ local r, errno = l_chdir(path)
if r == -1 then
return err("chdir", errno)
end