I want big red toast messages on print errors

Hi everyone!
I like big red messages when an error happens so I can quickly spot the problem. At the moment, here is the current situation:
Let’s say you try to extrude on a cold hot-end. If you manually send the command “G1 E0.1” in the Console, there will be a big red toast message saying cold extrusion protection kicked in, as well as a message in the Console.
If the same command is sent from a gcode file, there will only be a message in the Console. I also want the big red toast.
I can’t seem to be able to do that. I tried multiple things, my best attempt is to add “self.gcode.error(error_message)” to “virtual_sdcard.py” at the end of the file when an error message happens, but this returns an “Unhandled exception during run” and I can’t understand why.

Any help appreciated on this. I’ll be happy to share more info if needed.

This sounds like something you’d have to implement in whatever frontend you’re using.

As far as I understand it, the problem seems to come from the webhooks.py script that doesn’t properly detect the gcode.CommandError stemming from inside a gcode file. I really don’t understand why though, so any pointers appreciated!

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.