FileTool now stacks errors.
In FileTool.cpp there are two methods where a cube is saved:
void FileTool::saveAsEnlargedCube(Cube *icube, const QString & psOutFile)
void FileTool::saveAsReducedCube(Cube *icube, const QString & psOutFile)
The try...catch blocks in both of these methods assume only one exception could ever occur, and that the unspecified catch is for a file permissions issue (e.g. file I/O exception).
The error message they currently display is "Error", "Cannot open file, please check permissions".
Setting aside the possibility that the exception could stem from other causes not related to file permissions, this message should instead read something like
"Error","The file could not be saved." (possibly mention permissions, though there could obviously be other reasons).
#8 Updated by Christopher Combs over 1 year ago
- Status changed from In Progress to Resolved
- Impact updated (diff)
Built on prog17 in /work/projects/isis/latest/m04895.
- Open a cube in qview and zoom in past 100%.
- Try to save in a directory that doesn't exist with option "Export Viewport As Is" selected.