From 8897cb2f7952697bcee19799fb1aeef75fd01fba Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 19 Dec 2022 17:08:26 +0100 Subject: [PATCH] App: [skip ci] improve error message --- src/App/PropertyGeo.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/App/PropertyGeo.cpp b/src/App/PropertyGeo.cpp index 201b1fb3a5..3b8b0849d4 100644 --- a/src/App/PropertyGeo.cpp +++ b/src/App/PropertyGeo.cpp @@ -606,17 +606,17 @@ void PropertyPlacement::setPathValue(const ObjectIdentifier &path, const boost:: rot.getYawPitchRoll(yaw, pitch, roll); if (index == 0) { if (angle < -180.0 || angle > 180.0) - throw Base::ValueError("Yaw angle outside range [-180, +180]"); + throw Base::ValueError("Yaw angle is out of range [-180, +180]"); yaw = angle; } else if (index == 1) { if (angle < -90.0 || angle > 90.0) - throw Base::ValueError("Roll angle outside range [-90, +90]"); + throw Base::ValueError("Pitch angle is out of range [-90, +90]"); pitch = angle; } else if (index == 2) { if (angle < -180.0 || angle > 180.0) - throw Base::ValueError("Roll angle outside range [-180, +180]"); + throw Base::ValueError("Roll angle is out of range [-180, +180]"); roll = angle; } rot.setYawPitchRoll(yaw, pitch, roll);