[ Agent ] [ Executor ] 优化Excuetor部分的代码
This commit is contained in:
@@ -64,7 +64,7 @@ func Execute(em *ExecutionMessage) ([]string, error) {
|
||||
|
||||
// 归一化错误和日志
|
||||
if err != nil {
|
||||
resultLog = append(resultLog, fmt.Sprintf("Error: %s", err.Error()))
|
||||
resultLog = append(resultLog, "↓↓↓ 命令 Error 如下 ↓↓↓", err.Error())
|
||||
}
|
||||
|
||||
commandResult := fmt.Sprintf("Excution Comand are=> %v, Executor Result: %v", realCommand, resultLog)
|
||||
|
||||
Reference in New Issue
Block a user