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

Handle invalid layer name #3

@flomonster

Description

@flomonster

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions