소스 검색

优化错误返回

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)