kallaballa / ctrl-cut

Get your laser cutter under control
GNU General Public License v2.0
63 stars 7 forks source link

Don't crash when opening corrupt .cut files #41

Closed kintel closed 10 years ago

kintel commented 10 years ago

When opening a corrupt or partial .cut file, we currently bail and let the process crash. e.g. on Mac:

libc++abi.dylib: terminating with uncaught exception of type xmlpp::parse_error: Document not well-formed.
Line 10, column 5 (fatal):
Extra content at the end of the document

Abort trap: 6

We should be more robust and offer an error message.

kallaballa commented 10 years ago

now we show an error message