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

Test there are column names for table (i.e. table exists) before attempting to use them #99

Merged
merged 6 commits into from Dec 29, 2014

Conversation

aratcliffe
Copy link
Contributor

I've simply added guard conditions around the code that uses the column names to prevent the process from crashing when a request is made for a table that does not exist. Should also return an appropriate error response - 404 maybe?

@apollolm
Copy link
Contributor

Thanks! I've been working on some of the same items in a branch (dev-refactor). That is a bigger effort to rip apart the endpoints files into a more testable codebase. Also working on tests in that branch.

apollolm added a commit that referenced this pull request Dec 29, 2014
Test there are column names for table (i.e. table exists) before attempting to use them
@apollolm apollolm merged commit fd5d6d1 into locana-co:master Dec 29, 2014
@apollolm
Copy link
Contributor

I merged your changes into dev branch as well, which is where I do any changes before they make it into master. There were some conflicts as I also attempted to guard against this problem, but they're merged in there now (4021475).

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

Successfully merging this pull request may close these issues.

None yet

2 participants