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

Print VCS error details #67

Merged
merged 1 commit into from
Nov 21, 2017
Merged

Conversation

maximbaz
Copy link
Contributor

@maximbaz maximbaz commented Nov 21, 2017

I've experienced a couple of times issues when I cannot update VCS packages, but looking at the error I have no idea what is wrong. This change adds some details.

Before:

:: Checking development packages...
json: cannot unmarshal object into Go value of type main.branches

there is nothing to do

This tells me it's time to change my internet connection:

:: Checking development packages...
Cannot update 'neovim-gtk3-git'
Error: json: cannot unmarshal object into Go value of type main.branches
Status code: 403
Body: {"message":"API rate limit exceeded for XX.XX.XX.XX. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}

This tells me that yay doesn't cleanup this file after deleting a package called neovim-gtk3-git (or I made a mistake by manually fixing vcs.json (#66))

:: Checking development packages...
Cannot update 'neovim-gtk3-git'
Error: json: cannot unmarshal object into Go value of type main.branches
Status code: 404
Body: {"message":"Not Found","documentation_url":"https://developer.github.com/v3"}

there is nothing to do

@maximbaz maximbaz force-pushed the print_vcs_error_details branch from 8905be0 to 4db52ca Compare November 21, 2017 00:32
@maximbaz maximbaz force-pushed the print_vcs_error_details branch from 4db52ca to fdf41a6 Compare November 21, 2017 00:34
@Jguer
Copy link
Owner

Jguer commented Nov 21, 2017

Useful for bug reports

Off-topic: Still have to find a solution for this. Body: {"message":"API rate limit exceeded for XX.XX.XX.XX. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}

@Jguer Jguer merged commit 3913673 into Jguer:master Nov 21, 2017
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