Ignore:
Timestamp:
2008-11-01T15:41:59+01:00 (16 years ago)
Author:
hampelratte
Message:

plugin displayed error notice though the issue has been created, because the api now returns the id, of the new node, too and not only the string "ok"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/api/NewAction.java

    r11157 r11584  
    6464                }
    6565               
    66                 if(!"ok".equalsIgnoreCase(result)) {
    67                         throw new RuntimeException("Couldn't create new bug");
     66                if(result != null && !result.startsWith("ok")) {
     67                        throw new RuntimeException("Couldn't create new bug. Result: " + result);
    6868                }
    6969               
Note: See TracChangeset for help on using the changeset viewer.