Commit 40d0e8a3 authored by Luc Maisonobe's avatar Luc Maisonobe
Browse files

Fixed failing test.

parent 9c79cc6f
Pipeline #1051 passed with stages
in 30 minutes and 50 seconds
......@@ -108,11 +108,11 @@ public class AttitudeEndoints implements AttitudeBuilder {
if (frameA == null) {
if (frameB == null || frameB.asSpacecraftBodyFrame() == null) {
throw new OrekitException(OrekitMessages.UNINITIALIZED_VALUE_FOR_KEY, aKey);
throw new OrekitException(OrekitMessages.UNINITIALIZED_VALUE_FOR_KEY, aKey.name());
}
} else if (frameA.asSpacecraftBodyFrame() == null) {
if (frameB == null) {
throw new OrekitException(OrekitMessages.UNINITIALIZED_VALUE_FOR_KEY, bKey);
throw new OrekitException(OrekitMessages.UNINITIALIZED_VALUE_FOR_KEY, bKey.name());
} else if (frameB.asSpacecraftBodyFrame() == null) {
// at least one of the frame must be a spacecraft body frame
throw new OrekitException(OrekitMessages.CCSDS_INVALID_FRAME, frameB.getName());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment