Skip to content

API Error Checking #45

@arlough

Description

@arlough

Right now we don't really have any custom error checking or handling outside of what Flask and Python provide by default. While lower priority than other issues, this seems like something that would be a good intro to the codebase. Potentially a good first issue? If no one picks it up I'll get to it sometime.

An example of some of the error checking would be for instance the /edit_file endpoint lets us pass an end line < start line. This doesn't make sense and we should instead abort when it receives that info. Right now it just accepts that and tries to make an edit.

This is ok right now because users of the API know how it should work, but it's some low-hanging fruit that would be an improvement. Open to discussion on this!

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions