caddyfile: impove fmt warning message (#4444)

Co-authored-by: Francis Lavoie <lavofr@gmail.com>
This commit is contained in:
Runzhi He 2021-12-08 01:03:58 +08:00 committed by GitHub
parent dce81e85d5
commit e90d751732
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -88,7 +88,7 @@ func formattingDifference(filename string, body []byte) (caddyconfig.Warning, bo
return caddyconfig.Warning{ return caddyconfig.Warning{
File: filename, File: filename,
Line: line, Line: line,
Message: "input is not formatted with 'caddy fmt'", Message: "Caddyfile input is not formatted; run the 'caddy fmt' command to fix inconsistencies",
}, true }, true
} }