Skip to content

Commit 060a493

Browse files
URJalaurfeex
andauthored
Apply suggestions from code review
Co-authored-by: Felix Exner <[email protected]>
1 parent fb1da3e commit 060a493

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/ur_client_library/exceptions.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,12 @@ class IncompatibleRobotVersion : public UrException
129129
{
130130
public:
131131
explicit IncompatibleRobotVersion() = delete;
132-
explicit IncompatibleRobotVersion(std::string text, int required_robot_version, int actual_robot_version)
132+
explicit IncompatibleRobotVersion(const std::string& text, const VersionInformation& minimum_robot_version, const VersionInformation& actual_robot_version)
133133
: std::runtime_error(text)
134134
{
135135
std::stringstream ss;
136136
ss << text << "\n"
137-
<< "The requested feature is incompatible with the connected robot. Required Polyscope version: "
137+
<< "The requested feature is incompatible with the connected robot. Minimum required Polyscope version: "
138138
<< required_robot_version << ", actual Polyscope version: " << actual_robot_version;
139139
text_ = ss.str();
140140
}

0 commit comments

Comments
 (0)