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/pipe.lua | |
| parent | 7ddd265b1a3f420103dccdc0075c7a0e0679ccbb (diff) | |
improve errors msg
Diffstat (limited to 'xmake/core/base/pipe.lua')
| -rw-r--r-- | xmake/core/base/pipe.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/base/pipe.lua b/xmake/core/base/pipe.lua index 16cdf6be5..b0fe74d2e 100644 --- a/xmake/core/base/pipe.lua +++ b/xmake/core/base/pipe.lua @@ -317,7 +317,7 @@ function pipe.open(name, mode, buffsize) if pipefile then return _instance.new(pipefile, name) else - return nil, string.format("failed to open pipe: %s, error: %s", name, errors or "unknown") + return nil, string.format("failed to open pipe: %s, %s", name, errors or "unknown reason") end end @@ -334,7 +334,7 @@ function pipe.openpair(buffsize) if rpipefile and wpipefile then return _instance.new(rpipefile), _instance.new(wpipefile) else - return nil, nil, string.format("failed to open anonymous pipe pair, error: %s", errors or "unknown") + return nil, nil, string.format("failed to open anonymous pipe pair, %s", errors or "unknown reason") end end |
