GeoJSON error reporting
Submitted by van..@..il.com
Link to original bug (#784729)
Description
gnome-maps-3.22.2-1.fc25.x86_64.
I have prepared a trivial GeoJSON file (with help of http://geojson.io):
$ cat a.geojson { "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": {}, "geometry": { "type": "Point", "coordinates": [ -0.0, 51.0 ] } } ] }
Attempt to load this file into gnome-maps leads to error message "Failed to open layer" which disappears in a few seconds. I hoped gnome-maps prints more detailed error message to stderr and started gnome-maps from a terminal:
$ gnome-maps
(gnome-maps:11478): Gtk-WARNING **: Theme parsing error: application.css:14:30: The style property GtkButton:image-spacing is dn
(gnome-maps:11478): Gtk-WARNING **: Theme parsing error: application.css:15:31: The style property GtkWidget:interior-focus is n
But gnome-maps prints NOTHING. I am pretty sure a.geojson is perfectly valid, but my point is about error reporting. If gnome-maps cannot load a file for any reason, it should provide DETAILED error message to the user to let user KNOW (not guess!) WHAT THE PROBLEM IS.