cicv il y a 2 mois
Parent
commit
bdec50c7f6
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      aarch64/pjibot_guide/common/config/c_cloud.go

+ 2 - 2
aarch64/pjibot_guide/common/config/c_cloud.go

@@ -266,9 +266,9 @@ func getSnCode() (string, error) {
 	command = append(command, "sn")
 	_, snOutput, err := util.ExecuteSync(LocalConfig.RosparamPath, command...)
 	if err != nil {
-		return "", errors.New("执行获取sn码命令" + util.ToString(command) + "出错:" + util.ToString(err))
+		return "", errors.New("执行获取sn码命令" + LocalConfig.RosparamPath + util.ToString(command) + "出错:" + util.ToString(err))
 	}
-	c_log.GlobalLogger.Info("执行获取sn码命令", command, "成功,结果为:", snOutput)
+	c_log.GlobalLogger.Info("执行获取sn码命令", LocalConfig.RosparamPath, command, "成功,结果为:", snOutput)
 	snCode := strings.Replace(strings.Replace(snOutput, " ", "", -1), "\n", "", -1)
 	return snCode, nil
 }