We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee7cec2 commit 0a3dd3aCopy full SHA for 0a3dd3a
core/src/storage.cpp
@@ -190,8 +190,13 @@ void SolutionBase::setCost(double cost) {
190
191
void SolutionBase::markAsFailure(const std::string& msg) {
192
setCost(std::numeric_limits<double>::infinity());
193
- if (!msg.empty())
194
- setComment(msg + "\n" + comment());
+ if (!msg.empty()) {
+ std::stringstream ss;
195
+ ss << msg;
196
+ if (!comment().empty())
197
+ ss << "\n" << comment();
198
+ setComment(ss.str());
199
+ }
200
}
201
202
void SolutionBase::fillInfo(moveit_task_constructor_msgs::SolutionInfo& info, Introspection* introspection) const {
0 commit comments