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

errors: Position for YAML front matter errors are offset by 1 line #9857

Closed
bep opened this issue May 4, 2022 · 1 comment
Closed

errors: Position for YAML front matter errors are offset by 1 line #9857

bep opened this issue May 4, 2022 · 1 comment
Assignees
Milestone

Comments

@bep
Copy link
Member

bep commented May 4, 2022

E.g.

---
title: "Function Namespaces"
linkTitle "Functions"
weight: 20
---
_index.md:4:1": failed to unmarshal YAML: yaml: line 3: could not find expected ':'
@bep bep self-assigned this May 4, 2022
@bep bep removed the NeedsTriage label May 4, 2022
@bep bep added this to the v0.99.0 milestone May 4, 2022
bep added a commit to bep/hugo that referenced this issue May 4, 2022
To get to this, this commit also cleans up and simplifies the code surrounding errors and files. This also removes the usage of `github.com/pkg/errors`, mostly because of pkg/errors#223 -- but also because most of this is now built-in to Go.

Fixes gohugoio#9852
Fixes gohugoio#9857
bep added a commit to bep/hugo that referenced this issue May 4, 2022
To get to this, this commit also cleans up and simplifies the code surrounding errors and files. This also removes the usage of `github.com/pkg/errors`, mostly because of pkg/errors#223 -- but also because most of this is now built-in to Go.

Fixes gohugoio#9852
Fixes gohugoio#9857
bep added a commit to bep/hugo that referenced this issue May 4, 2022
To get to this, this commit also cleans up and simplifies the code surrounding errors and files. This also removes the usage of `github.com/pkg/errors`, mostly because of pkg/errors#223 -- but also because most of this is now built-in to Go.

Fixes gohugoio#9852
Fixes gohugoio#9857
bep added a commit to bep/hugo that referenced this issue May 5, 2022
To get to this, this commit also cleans up and simplifies the code surrounding errors and files. This also removes the usage of `github.com/pkg/errors`, mostly because of pkg/errors#223 -- but also because most of this is now built-in to Go.

Fixes gohugoio#9852
Fixes gohugoio#9857
bep added a commit to bep/hugo that referenced this issue May 5, 2022
To get to this, this commit also cleans up and simplifies the code surrounding errors and files. This also removes the usage of `github.com/pkg/errors`, mostly because of pkg/errors#223 -- but also because most of this is now built-in to Go.

Fixes gohugoio#9852
Fixes gohugoio#9857
bep added a commit to bep/hugo that referenced this issue May 6, 2022
* Add file context to minifier errors when publishing
* Misc fixes (see issues)

To get to this, this commit also cleans up and simplifies the code surrounding errors and files. This also removes the usage of `github.com/pkg/errors`, mostly because of pkg/errors#223 -- but also because most of this is now built-in to Go.

Fixes gohugoio#9852
Fixes gohugoio#9857
Fixes gohugoio#9863
bep added a commit to bep/hugo that referenced this issue May 6, 2022
* Add file context to minifier errors when publishing
* Misc fixes (see issues)

To get to this, this commit also cleans up and simplifies the code surrounding errors and files. This also removes the usage of `github.com/pkg/errors`, mostly because of pkg/errors#223 -- but also because most of this is now built-in to Go.

Fixes gohugoio#9852
Fixes gohugoio#9857
Fixes gohugoio#9863
bep added a commit to bep/hugo that referenced this issue May 6, 2022
* Add file context to minifier errors when publishing
* Misc fixes (see issues)

To get to this, this commit also cleans up and simplifies the code surrounding errors and files. This also removes the usage of `github.com/pkg/errors`, mostly because of pkg/errors#223 -- but also because most of this is now built-in to Go.

Fixes gohugoio#9852
Fixes gohugoio#9857
Fixes gohugoio#9863
bep added a commit to bep/hugo that referenced this issue May 6, 2022
* Add file context to minifier errors when publishing
* Misc fixes (see issues)
* Allow custom server error template in layouts/server/error.html

To get to this, this commit also cleans up and simplifies the code surrounding errors and files. This also removes the usage of `github.com/pkg/errors`, mostly because of pkg/errors#223 -- but also because most of this is now built-in to Go.

Fixes gohugoio#9852
Fixes gohugoio#9857
Fixes gohugoio#9863
bep added a commit to bep/hugo that referenced this issue May 6, 2022
* Add file context to minifier errors when publishing
* Misc fixes (see issues)
* Allow custom server error template in layouts/server/error.html

To get to this, this commit also cleans up and simplifies the code surrounding errors and files. This also removes the usage of `github.com/pkg/errors`, mostly because of pkg/errors#223 -- but also because most of this is now built-in to Go.

Fixes gohugoio#9852
Fixes gohugoio#9857
Fixes gohugoio#9863
bep added a commit to bep/hugo that referenced this issue May 6, 2022
* Add file context to minifier errors when publishing
* Misc fixes (see issues)
* Allow custom server error template in layouts/server/error.html

To get to this, this commit also cleans up and simplifies the code surrounding errors and files. This also removes the usage of `github.com/pkg/errors`, mostly because of pkg/errors#223 -- but also because most of this is now built-in to Go.

Fixes gohugoio#9852
Fixes gohugoio#9857
Fixes gohugoio#9863
bep added a commit to bep/hugo that referenced this issue May 6, 2022
* Add file context to minifier errors when publishing
* Misc fixes (see issues)
* Allow custom server error template in layouts/server/error.html

To get to this, this commit also cleans up and simplifies the code surrounding errors and files. This also removes the usage of `github.com/pkg/errors`, mostly because of pkg/errors#223 -- but also because most of this is now built-in to Go.

Fixes gohugoio#9852
Fixes gohugoio#9857
Fixes gohugoio#9863
@bep bep closed this as completed in f2946da May 6, 2022
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant