Changeset 3100


Ignore:
Timestamp:
08/23/07 14:32:10 (12 years ago)
Author:
melissa
Message:

Better error messages in the exporter.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/plugins/Exporter.java

    r3015 r3100  
    168168    } 
    169169    catch (FormatException e) { 
    170       IJ.error(e.getMessage()); 
    171170      e.printStackTrace(); 
     171      ByteArrayOutputStream buf = new ByteArrayOutputStream(); 
     172      e.printStackTrace(new PrintStream(buf)); 
     173      IJ.error(e.getMessage() + ":\n" + buf.toString()); 
    172174    } 
    173175    catch (IOException e) { 
    174       IJ.error(e.getMessage()); 
    175176      e.printStackTrace(); 
     177      ByteArrayOutputStream buf = new ByteArrayOutputStream(); 
     178      e.printStackTrace(new PrintStream(buf)); 
     179      IJ.error(e.getMessage() + ":\n" + buf.toString()); 
    176180    } 
    177181  } 
Note: See TracChangeset for help on using the changeset viewer.