Changeset 1749 in josm


Ignore:
Timestamp:
2009-07-08T20:41:54+02:00 (15 years ago)
Author:
stoecker
Message:

improved error messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/OsmApiException.java

    r1663 r1749  
    6565        }
    6666        if (errorBody != null) {
    67             sb.append(",Error Body=<")
    68             .append(errorBody)
    69             .append(">");
     67            errorBody = errorBody.replaceAll("^[ \n\t\r]+", "").replaceAll("[ \n\t\r]+$", "");
     68            if(!errorBody.equals(errorHeader)) {
     69                sb.append(", Error Body=<")
     70                .append(errorBody)
     71                .append(">");
     72            }
    7073        }
    7174        return sb.toString();
Note: See TracChangeset for help on using the changeset viewer.