Add some code that writes out geojson.
Write out the error if there is one.