Skip to content

Unhelpful error message when attempting to load inertial reference frame without including central body #23

Description

@ButteredFire

Summary:
When attempting to load inertial reference frame without including central body (e.g., using ECI without including Body::Earth), Astrocelerate reports a generic error message (invalid unordered_map<K, T> key) instead of a detailed error.

Environment:

  • Astrocelerate version / commit hash: 0.2
  • OS & version: Windows 11 Version 25H2
  • CPU model: 11th Gen Intel Core i5-11400H
  • GPU model (& VRAM if applicable): NVIDIA RTX 3050 Laptop GPU
  • RAM: 8GB
  • Vulkan driver version: --
  • Build type: All build types
  • Compiler & version: --
  • Build flags / runtime options: None

Steps to Reproduce:

  1. Define a simulation that uses an inertial reference frame (e.g., ECI, HCI)
  2. Not include that frame's central body (e.g., Earth for ECI, Sun for HCI)
  3. Run the simulation and observe the error

Expected Behavior:
There should be a helpful error informing the user that the central body is missing.

Actual Behavior:
There is a generic and cryptic error that makes it hard for non-maintainers to understand and diagnose.

Logs & Outputs:

Image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions