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/sandbox/modules/os.lua | |
| parent | 7ddd265b1a3f420103dccdc0075c7a0e0679ccbb (diff) | |
improve errors msg
Diffstat (limited to 'xmake/core/sandbox/modules/os.lua')
| -rw-r--r-- | xmake/core/sandbox/modules/os.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/sandbox/modules/os.lua b/xmake/core/sandbox/modules/os.lua index d9ebfe9d1..7f7e9db1b 100644 --- a/xmake/core/sandbox/modules/os.lua +++ b/xmake/core/sandbox/modules/os.lua @@ -341,7 +341,7 @@ function sandbox_os.exec(cmd, ...) if ok ~= nil then errors = string.format("exec(%s) failed(%d)", cmd, ok) else - errors = string.format("cannot exec(%s), error: %s", cmd, errors and errors or "unknown") + errors = string.format("cannot exec(%s), %s", cmd, errors and errors or "unknown reason") end os.raise(errors) end @@ -382,7 +382,7 @@ function sandbox_os.execv(program, argv, opt) if ok ~= nil then errors = string.format("execv(%s) failed(%d)", cmd, ok) else - errors = string.format("cannot execv(%s), error: %s", cmd, errors and errors or "unknown") + errors = string.format("cannot execv(%s), %s", cmd, errors and errors or "unknown reason") end os.raise(errors) end |
