Skip to content

Full path to file should be given in EXIF error message #12693

Open
@snicolai-blog

Description

@snicolai-blog
$ hugo version
hugo v0.130.0+extended darwin/arm64 BuildDate=2024-07-29T13:51:56Z VendorInfo=brew

I use page objects in my blog, and the new EXIF reader prints error message files relative to the page object. I'd really like it to print them relative to the blog root, so I know which file. For example:

WARN  images: "/fox.jpg": BitsPerSample: expected []interface {}, got uint16:

would be much better as:

WARN  images: "content/posts/part1/part2/fox.jpg": BitsPerSample: expected []interface {}, got uint16:

If it makes sense to strip the content/posts portion off to shorten the error message, that's fine.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions