فهرست منبع

优化错误返回

niujiuru 1 ماه پیش
والد
کامیت
6e626c2d43
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      main.go

+ 1 - 1
main.go

@@ -53,7 +53,7 @@ func (p *program) Start(s service.Service) error {
 	}
 
 	if !mcu_ctrl_board.ModuleInit(initInfo) {
-		return errors.New("mcu serial open failed")
+		return errors.New("failed to open MCU communication port")
 	}
 
 	p.core_server, err = jsonrpc2.NewRPCServer(p.name, baseapp.Logger)