chiark / gitweb /
Postprocessing plugin errors: print them to stderr too
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 6 Feb 2016 16:43:30 +0000 (16:43 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 6 Feb 2016 18:32:03 +0000 (18:32 +0000)
commit046b7b5a323b7ff8669078085c0062c27cf59efd
tree8ce29a5a94118fde663cde2d9ac31c2b68a0831c
parent3093914fb43e6f8a579dcf97e188b98592cb7786
Postprocessing plugin errors: print them to stderr too

Failures to run the postprocessing plugin are currently mostly ignored
- they result in a message in the slicing engine log, but the slice is
considered to have succeeded.

Ideally slicing engine failures, and plugin failures, would be treated
the same way.  But currently engine errors result in a message on
stderr and the slice simply not finishing in the GUI - that is, there
is not even any way to view the log.

Ideally there would be a `slicing failed' state for the slicing
button, as well as `not yet finished'.  That way the user could know
that something was wrong, and know to look at the log.

For now, however, just print the error message to stderr with
traceback.print_exc, too, so that at least command-line users get to
see something.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Cura/util/pluginInfo.py