aboutsummaryrefslogtreecommitdiff
path: root/src/lpm.c
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2023-06-19 17:31:18 -0400
committerAdam Harrison <adamdharrison@gmail.com>2023-06-19 17:31:18 -0400
commit43a0e9a2d7f0f2cd18360be04f763f4a2b11ecbe (patch)
treeb86ded81460a3a488b30290d5b56c4ac1f158f99 /src/lpm.c
parent8763e605d17f6d501af6b6e092ac28cb5d2dd4eb (diff)
downloadlite-xl-plugin-manager-43a0e9a2d7f0f2cd18360be04f763f4a2b11ecbe.tar.gz
lite-xl-plugin-manager-43a0e9a2d7f0f2cd18360be04f763f4a2b11ecbe.zip
Clarified that `common.path` should only look for executbale files that are not folders.
Diffstat (limited to 'src/lpm.c')
-rw-r--r--src/lpm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lpm.c b/src/lpm.c
index 6dee22e..eccec2b 100644
--- a/src/lpm.c
+++ b/src/lpm.c
@@ -1043,8 +1043,10 @@ static int lpm_flock(lua_State* L) {
flock(fd, LOCK_UN);
close(fd);
#endif
- if (err)
- return lua_error(L);
+ if (err) {
+ lua_pushboolean(L, 1);
+ return 1;
+ }
return 0;
}