diff options
| author | ruki <[email protected]> | 2020-04-30 22:49:54 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-04-30 10:59:28 +0800 |
| commit | bcf967b2abd338f9bcd3de403d5ebbaabf963d94 (patch) | |
| tree | ae6d42e93489dccf50e865db541b540c0ce71455 /xmake/core/base/poller.lua | |
| parent | 7ddd265b1a3f420103dccdc0075c7a0e0679ccbb (diff) | |
improve errors msg
Diffstat (limited to 'xmake/core/base/poller.lua')
| -rw-r--r-- | xmake/core/base/poller.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/core/base/poller.lua b/xmake/core/base/poller.lua index 335ba98a6..4789a4d72 100644 --- a/xmake/core/base/poller.lua +++ b/xmake/core/base/poller.lua @@ -71,7 +71,7 @@ function poller:insert(obj, events, udata) -- insert it local ok, errors = io.poller_insert(obj:otype(), obj:cdata(), events) if not ok then - return false, string.format("%s: insert events(%d) to poller failed, error: %s", obj, events, errors or "unknown") + return false, string.format("%s: insert events(%d) to poller failed, %s", obj, events, errors or "unknown reason") end -- save poller object data and save obj/ref for gc @@ -85,7 +85,7 @@ function poller:modify(obj, events, udata) -- modify it local ok, errors = io.poller_modify(obj:otype(), obj:cdata(), events) if not ok then - return false, string.format("%s: modify events(%d) to poller failed, error: %s", obj, events, errors or "unknown") + return false, string.format("%s: modify events(%d) to poller failed, %s", obj, events, errors or "unknown reason") end -- update poller object data @@ -99,7 +99,7 @@ function poller:remove(obj) -- remove it local ok, errors = io.poller_remove(obj:otype(), obj:cdata()) if not ok then - return false, string.format("%s: remove events from poller failed, error: %s", obj, errors or "unknown") + return false, string.format("%s: remove events from poller failed, %s", obj, errors or "unknown reason") end -- remove poller object data |
