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

handle error when no links are found #4649

Merged
merged 1 commit into from
Nov 7, 2016
Merged

Conversation

resalisbury
Copy link
Contributor

@resalisbury resalisbury commented Nov 2, 2016

Description

This is to address tomchristie/django-rest-raml#5

The problem is that if you try to generate RAML docs when you haven't set up any views, you get the above error (min called on an empty list).

unfortunately, this PR is not very helpful since it doesn't actually surface a readable error to the user.

Next steps:

  • this PR should be updated to surface a readable error to the User in the browser. Open to thoughts on best way to address...

This is to address tomchristie/django-rest-raml#5

The problem is that if you try to generate RAML docs when you haven't set up any views, you get the above error (min called on an empty list).  

unfortunately, this PR is not very helpful since it doesn't actually surface a readable error to the user.  Not sure what the best way to address this would be...
@tomchristie
Copy link
Member

👍 Yup, we oughta at least do this. Further refinements could also be considered, but this is reasonable in it's own right.

@tomchristie tomchristie closed this Nov 7, 2016
@tomchristie tomchristie reopened this Nov 7, 2016
@tomchristie tomchristie merged commit 06df61e into encode:master Nov 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants