[ Agent ] [ Executor ] 优化Excuetor部分的代码

This commit is contained in:
zeaslity
2023-08-14 10:43:22 +08:00
parent 92390b4d6f
commit 7ca5e232bf
4 changed files with 31 additions and 26 deletions

View File

@@ -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)