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/socket.lua | |
| parent | 7ddd265b1a3f420103dccdc0075c7a0e0679ccbb (diff) | |
improve errors msg
Diffstat (limited to 'xmake/core/base/socket.lua')
| -rw-r--r-- | xmake/core/base/socket.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/base/socket.lua b/xmake/core/base/socket.lua index 803ee4f5a..4ca589452 100644 --- a/xmake/core/base/socket.lua +++ b/xmake/core/base/socket.lua @@ -666,7 +666,7 @@ function socket.bind(addr, port, opt) local ok, errors = sock:bind(addr, port) if not ok then sock:close() - return nil, string.format("bind %s:%s failed, errors: %s!", addr, port, errors or "unknown") + return nil, string.format("bind %s:%s failed, %s!", addr, port, errors or "unknown reason") end return sock end @@ -680,7 +680,7 @@ function socket.bind_unix(addr, opt) local ok, errors = sock:bind_unix(addr, opt) if not ok then sock:close() - return nil, string.format("bind unix://%s failed, errors: %s!", addr, errors or "unknown") + return nil, string.format("bind unix://%s failed, %s!", addr, errors or "unknown reason") end return sock end |
