Ticket #60 (closed defect: fixed)

Opened 11 years ago

Last modified 11 years ago

xuvtools_gui does not show error if saving fails

Reported by: emmenlau Owned by: emmenlau
Priority: major Milestone:
Component: xuvtools Version:
Keywords: xuvtools, xuvtools_gui, error Cc:


If the user enters an invalid file name on saving, xuvtools_gui does not show an error message. AFAIK, libGenFile should throw an exception when saving is not possbile. This could indicate the exception is not caught or not displayed.

NOTE: Saving can fail under several circumstances. The output file could not support the requested data, or could have a format where saving is not supported (lsm), or the file could not be created due to permissions or errors in the path, and many more ...

Change History

Changed 11 years ago by aaron@…

Fixed in revision 2741. If the saving fails, the gui returns a standard error message: "Sorry, the project <filename> could not be saved. Make sure that you have write access to the selected location and that there is enough free disk space.". I did it like this because initially I made xuvProjectFiles.cc::save_project_to_project_file() rethrow the exception thrown by GenFile::saveAllStringAttributes() but this resulted in very ugly error strings from the HDF5 library, that no user would like to see anyways. Moreover, if the saving fails, I reset the project file name (to ""), so that next time one tries to save one is asked for another filename.

Changed 11 years ago by aaron@…

  • status changed from new to closed
  • resolution set to fixed

Changed 11 years ago by ne704 [niko@…

  • cc aaron@…, ne704 removed

fixed in r2742

Note: See TracTickets for help on using tickets.