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

Uninformative error when navbar structure field missing #2312

Closed
JosiahParry opened this issue May 28, 2023 · 0 comments · Fixed by #2467
Closed

Uninformative error when navbar structure field missing #2312

JosiahParry opened this issue May 28, 2023 · 0 comments · Fixed by #2467
Labels
feature a feature request or enhancement navbar 🗺️

Comments

@JosiahParry
Copy link

JosiahParry commented May 28, 2023

I am working with a new package with a DESCRIPTION file that does not have the repository or the URL.
I've added the following to my _pkgdown.yml

navbar:
  right: [github]

Upon running pkgdown::build_site() I am presented with the error

Error: 
! in callr subprocess.
Caused by error in `purrr::map2(links, seq_along(links), tackle_link, is_submenu = is_submenu, …`:
! In index: 1.
ℹ See `$stdout` for standard output.
Type .Last.error to see the more details.

This occurs because the github link cannot be found.

Ask: improve the error messaging in this context

EDIT: this is because the structure field of the yaml was missing.

@JosiahParry JosiahParry changed the title Uninformative error when Github link not found Uninformative error when navbar structure field missing May 28, 2023
@hadley hadley added feature a feature request or enhancement navbar 🗺️ labels Oct 30, 2023
hadley added a commit that referenced this issue Apr 18, 2024
hadley added a commit that referenced this issue Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement navbar 🗺️
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants