Ignore:
Timestamp:
2016-05-27T19:07:59+02:00 (4 years ago)
Author:
Don-vip
Message:

fix #12875 - Add data to bug report (patch by michael2402)

Location:
trunk/src/org/openstreetmap/josm/tools/bugreport
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/bugreport/BugReportExceptionHandler.java

    r10214 r10285  
    198198    static JPanel buildPanel(final Throwable e) {
    199199        StringWriter stack = new StringWriter();
    200         e.printStackTrace(new PrintWriter(stack));
     200        PrintWriter writer = new PrintWriter(stack);
     201        if (e instanceof ReportedException) {
     202            // Temporary!
     203            ((ReportedException) e).printReportDataTo(writer);
     204            ((ReportedException) e).printReportStackTo(writer);
     205        } else {
     206            e.printStackTrace(writer);
     207        }
    201208
    202209        String text = ShowStatusReportAction.getReportHeader() + stack.getBuffer().toString();
Note: See TracChangeset for help on using the changeset viewer.