Skip to content

Commit 7f5518e

Browse files
committed
[operations] Use SOFA-like error messaging
1 parent 0da5a7a commit 7f5518e

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/sofa/collisionAlgorithm/operations/ContainsPoint.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ class Operation : public GenericOperation<Operation, // Type of the operation
1818

1919
void notFound(const std::type_info& id) const override
2020
{
21-
std::cerr << "ERROR the operation ContainsPointOperation is not registered with for type = "
22-
<< sofa::helper::NameDecoder::decodeFullName(id) << std::endl;
21+
msg_error("ContainsPointInElement")
22+
<< "The operation ContainsPointInElementOperation is not registered with for type = "
23+
<< sofa::helper::NameDecoder::decodeFullName(id);
2324
}
2425
};
2526

@@ -46,9 +47,9 @@ class Operation
4647

4748
void notFound(const std::type_info& id) const override
4849
{
49-
std::cerr << "ERROR the operation ContainsPointProximityOperation is not registered with "
50-
"for type = "
51-
<< sofa::helper::NameDecoder::decodeFullName(id) << std::endl;
50+
msg_error("ContainsPointInProximity")
51+
<< "The operation ContainsPointInProximityOperation is not registered with for type = "
52+
<< sofa::helper::NameDecoder::decodeFullName(id);
5253
}
5354
};
5455

0 commit comments

Comments
 (0)