From 4b3232ce7d067f5ec760b80c16978f261918ffe1 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 25 Nov 2022 22:37:06 +0800 Subject: improve strerror --- core/src/tbox/tbox | 2 +- core/src/xmake/os/strerror.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'core/src') diff --git a/core/src/tbox/tbox b/core/src/tbox/tbox index 22ed6483f..5832d9d3e 160000 --- a/core/src/tbox/tbox +++ b/core/src/tbox/tbox @@ -1 +1 @@ -Subproject commit 22ed6483f2de73f42ab1b5aab77a44673ff94d6a +Subproject commit 5832d9d3eb26f4472de8f1f4de33a3367642c9eb diff --git a/core/src/xmake/os/strerror.c b/core/src/xmake/os/strerror.c index 7e1268079..09663daff 100644 --- a/core/src/xmake/os/strerror.c +++ b/core/src/xmake/os/strerror.c @@ -52,6 +52,9 @@ tb_int_t xm_os_strerror(lua_State* lua) case TB_STATE_SYSERROR_NOT_PERM: strerr = "Permission denied"; break; + case TB_STATE_SYSERROR_NOT_ACCESS: + strerr = "Not access because it is busy"; + break; case TB_STATE_SYSERROR_NOT_FILEDIR: strerr = "No such file or directory"; break; -- cgit v1.3.1