Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error message for uploading boundaries #796

Open
tgilcrest opened this issue Jul 2, 2019 · 0 comments
Open

Improve error message for uploading boundaries #796

tgilcrest opened this issue Jul 2, 2019 · 0 comments

Comments

@tgilcrest
Copy link
Collaborator

Related to the discussion in #790, we should improve the error message on the shapefile upload for boundaries. When an error is encountered, the error message returned is simply: Error - check that your upload is a valid shapefile.

image

However, in the dev console, we see that a more specific error is returned:

"errors":{"message":"Shapefile must include a .prj file"}

or

"errors":{"message":"Feature is not a MultiPolygon or Polygon"}

The UI should return the more specific error message so the user knows what is wrong with the upload without having to dig into the dev console.

In addition, the response returns a 201 Created, which seems incorrect, and should probably be some 400-level response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant