mainsail-crew / mainsail

Mainsail is the popular web interface for managing and controlling 3D printers with Klipper.
https://docs.mainsail.xyz
GNU General Public License v3.0
1.68k stars 349 forks source link

Display UI error(s) when interface is unable to initialize #1971

Closed ChrisRenfrow closed 5 days ago

ChrisRenfrow commented 1 month ago

Requested feature:

I think at a minimum there should be some indicator in the UI that errors have occurred during initialization and to check the console. Ideally the error, if known, should be explained in terms that are more easily understood with suggestions for troubleshooting.

e.g.

Error: Moonraker - Client {ip} untrusted! Check your moonraker.conf's authorization module, specifically trusted_clients.

Solves the following problem:

There are situations in which the interface can be left hanging on "Initializing" with no indication of any errors with the process outside of the console. Additionally, these console errors can be difficult for users to understand.

2024-08-12-154004_grim

See: https://github.com/mainsail-crew/MainsailOS/issues/282

Additional information:

Originally posted here when I failed to realize I was in the MainsailOS repo, whoops!