RobotWebTools / rclnodejs

Node.js version of ROS 2.0 client
https://docs.ros.org/en/humble/Concepts/Basic/About-Client-Libraries.html?highlight=rclnodejs#community-maintained
Apache License 2.0
311 stars 70 forks source link

error is not defined in the client class #894

Closed Sata51 closed 1 year ago

Sata51 commented 1 year ago

The error method is not imported here

https://github.com/RobotWebTools/rclnodejs/blob/d5acae6253a4f0d504124b6e9523fbb9b0032521/lib/client.js#L73

wayneparrott commented 1 year ago

Thx for identifying this issue. Propose replacing error() with a simple throw <error-msg>. Do you mind submitting a PR?