Skip to content

Don't swallow error messages #125

Description

@wilhelmberg

Debugging a Mapbox Studio Classic and a KML problem, I came across this error message

image

which led me to believe the data was faulty and investigate in that direction, when in reality it seems that in the context of Mapbox Studio Classic and KMLs mapnik-omnivore/node-srs/node-gdal are not able to find the gdal support files:

image

May I suggest to augment the custom error message with the original error message?
e.g. change

return invalid('OGR source missing extent');

to

return invalid('OGR source missing extent: ' + err);

} catch (err) { return invalid('OGR source missing extent'); }

/cc @GretaCB

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions