diff options
Diffstat (limited to 'xmake/core/sandbox/modules/process.lua')
| -rw-r--r-- | xmake/core/sandbox/modules/process.lua | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/xmake/core/sandbox/modules/process.lua b/xmake/core/sandbox/modules/process.lua index cc4282702..6c71bb522 100644 --- a/xmake/core/sandbox/modules/process.lua +++ b/xmake/core/sandbox/modules/process.lua @@ -61,11 +61,14 @@ function sandbox_process.open(command, outfile, errfile) end -- open process with arguments -function sandbox_process.openv(argv, outfile, errfile) +function sandbox_process.openv(filename, argv, outfile, errfile) -- check assert(argv) + -- format filename first + filename = vformat(filename) + -- format output file if exists if outfile then outfile = vformat(outfile) @@ -77,9 +80,9 @@ function sandbox_process.openv(argv, outfile, errfile) end -- open process - local proc = process.openv(argv, outfile, errfile) + local proc = process.openv(filename, argv, outfile, errfile) if not proc then - raise("openv process(%s) failed!", table.concat(argv, " ")) + raise("openv process(%s, %s) failed!", filename, table.concat(argv, " ")) end -- ok |
