Skip to content
This repository has been archived by the owner on Mar 28, 2022. It is now read-only.

Handle invalid layer name #3

Open
flomonster opened this issue Jan 27, 2022 · 0 comments
Open

Handle invalid layer name #3

flomonster opened this issue Jan 27, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@flomonster
Copy link
Member

Current behavior

Currently when we try to fetch information from a layer that isn't specified in the configuration we have an error 500.

One of the locations where the error is triggered is here:
https://github.com/DGEXSolutions/chartos/blob/67ceb8b1fa196470661fe660a6f6eef4685f2c1d/chartos/views.py#L52

Expected behavior

We should return a 404 with a readable error message.

@flomonster flomonster added the enhancement New feature or request label Jan 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant