Commit 5053e182 by 任晓松

update

parent 86252b52
......@@ -11,7 +11,10 @@ class ExecClient {
async exec(cmd) {
//await后面表达式返回的promise对象,是then的语法糖,await返回then函数的返回值
//异常需要try/catch自己捕获或外部catch捕获
const {stdout, stderr} = await exec(cmd);
var options = {
maxBuffer: 1024 * 1024 * 15
};
const {stdout, stderr} = await exec(cmd,options);
return {stdout, stderr};
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment