Skip to content

Commit 7ae7a87

Browse files
committed
Display a more helpful message
Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
1 parent 633c434 commit 7ae7a87

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/systems/lens_flare/LensFlare.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,15 +176,15 @@ void LensFlarePrivate::OnPostRender()
176176
auto sensor = this->scene->SensorByName(this->cameraName);
177177
if (!sensor)
178178
{
179-
gzerr << "Unable to find sensor: " << this->cameraName
180-
<< std::endl;
179+
gzerr << "[lensflare] Unable to find a camera sensor parent for lensflare "
180+
<< "in the context of " << this->cameraName << std::endl;
181181
return;
182182
}
183183

184184
this->camera = std::dynamic_pointer_cast<rendering::Camera>(sensor);
185185
if (!this->camera)
186186
{
187-
gzerr << "Sensor: " << this->cameraName << " is not a Camera sensor"
187+
gzerr << "[lensflare] Sensor: " << this->cameraName << " is not a Camera sensor"
188188
<< std::endl;
189189
return;
190190
}

0 commit comments

Comments
 (0)