Log import objects error by Rylern · Pull Request #1977 · qupath/qupath
Looks good. For reference, this refers to https://forum.image.sc/t/error-on-geojson-object-import-in-qupath/115968
The lack of logging info depends upon how the import was performed.
Previously, the full stack trace was already logged as an error when using drag & drop, or when trying to import the GeoJSON with a script like this:
var json = """ { "features": [ { "geometry": { "coordinates": [ [ [ 36321, 40303 ], [ 36270, 40238 ], [ 36191, 40223 ], [ 36103, 40237 ], [ 36102, 40380 ], [ 36121, 40422 ], [ 36241, 40423 ], [ 36312, 40284 ], [ 36321, 40303 ] ] ], "type": "Polygon" }, "type": "Feature" } ], "type": "FeatureCollection" } """ GsonTools.parseObjectsFromGeoJSON(json)
This PR improves this by logging the error when using File → Import objects from file....