Skip to content

FR: Make caddy validate -c errors more prominent #7760

Closed

Description

@udf2457

Issue Details

I noticed this one today:

$ caddy validate -c /etc/caddy/Caddyfile
2026/05/20 14:33:21.004 INFO using config from file {"file": "/etc/caddy/Caddyfile"}
2026/05/20 14:33:21.012 WARN The nested 'metrics' option inside servers is deprecated and will be removed in the next major version. Use the global 'metrics' option instead.
Error: adapting config using caddyfile: 5: unrecognized directive: Access-Control-Allow-Methods:

INFO and WARN show up in blue and orange respectively. But Error just sits there on its own with no effort to highlight it ?

Assistance Disclosure

AI not used

If AI was used, describe the extent to which it was used.

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions