saalfeldlab / paintera

GNU General Public License v2.0
100 stars 17 forks source link

Improve error logging when deserialization fails #339

Closed hanslovsky closed 5 years ago

hanslovsky commented 5 years ago

In particular for missing `maxId' attribute

Fixes #338

hanslovsky commented 5 years ago

This PR will display a more meaningful message to the command line and an information dialog with the same error message when deserialization of a project fails. In particular, the error message for the maxId attribute has been updated:

Unable to deserialize Paintera project `/home/hanslovskyp/Downloads/paintman-good_project/paintera': Required attribute `maxId' not specified for dataset `/seg' in container `org.janelia.saalfeldlab.n5.hdf5.N5HDF5Writer@67bef81f'.

A meaningful message for the container when using HDF5 can be generated once, https://github.com/saalfeldlab/n5-hdf5/pull/6 is merged and released.

hanslovsky commented 5 years ago

cc @pgunn @axtimwalde