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

When incorrect data is uploaded to be redacted, no error is provided to the user #56

Open
AdamLeonSmith opened this issue Apr 18, 2020 · 0 comments

Comments

@AdamLeonSmith
Copy link
Contributor

AdamLeonSmith commented Apr 18, 2020

Steps to reproduce:

  • Open the redaction tool
  • Upload a JSON file that is not in the right format

What happened:
The sea is shown in the map, but no error is visible to the user. Errors are thrown to the JS console e.g.

Uncaught SyntaxError: Unexpected token , in JSON at position 281
at JSON.parse ()
at FileReader. (index.html:1104)

or

Uncaught TypeError: Cannot read property 'time' of undefined
at FileReader. (index.html:1427)

What I expected to happen
I expected to see an error that is visible to the user, and advises them that the file format is incorrect.

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