Skip to content

Commit c1f379e

Browse files
authored
Update physics system error msg when plugin can not be loaded (#2604)
Signed-off-by: Ian Chen <[email protected]>
1 parent 3977d65 commit c1f379e

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/systems/physics/Physics.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -851,8 +851,8 @@ void Physics::Configure(const Entity &_entity,
851851
physics::FeaturePolicy3d>>();
852852
if (classNames.empty())
853853
{
854-
gzerr << "No physics plugins found in library [" << pathToLib << "]."
855-
<< std::endl;
854+
gzerr << "No physics plugins implementing required interface found in "
855+
<< "library [" << pathToLib << "]." << std::endl;
856856
return;
857857
}
858858

tutorials/physics.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,12 @@ that path to the environment variable as described above.
127127
There was some problem loading that file. Check that it exists, that you have
128128
permissions to access it, and that it's acually a physics engine plugin.
129129

130+
> No physics plugins implementing required interface found in library
131+
> [/home/physics_engines/libCustomEngine.so]
132+
133+
The library was found but none of the plugins in the library implement the
134+
required interface to be considered a physics plugin.
135+
130136
> No plugins with all required features found in library
131137
> [/home/physics_engines/libCustomEngine.so]
132138

0 commit comments

Comments
 (0)