-
Notifications
You must be signed in to change notification settings - Fork 76
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
[Bug] JSON error message when project has no readme #1285
Comments
Thanks for the report. Would you like to submit a PR? :) |
Could this be solved by adding something like |
@mfirry Thanks for jumping into this. The issue is here:
At the client side, we send a request to Github to get the readme but we don't check the status code. |
Ok so something along these lines would work for you? fetch(request).toFuture
.flatMap { res =>
if(res.status == 200) {
res.text().toFuture
} else {
Future("No README found for this project, please check the repository")
} |
Yep it looks good |
Adding handling for repos with missing README files. Fixes #1285
Current behavior
https://index.scala-lang.org/ruimo/csvparser
Indeed the project as of writing has no readme on github
Expected Behavior
Perhaps fill the panel with "No README found for this project, please check the repository"
Extra comments
No response
Search terms
README, error message
The text was updated successfully, but these errors were encountered: