Matthew Holt
3 years ago
No known key found for this signature in database
GPG Key ID: 2A349DD577D586A5
1 changed files with
1 additions and
1 deletions
-
cmd/commandfuncs.go
|
@ -567,7 +567,7 @@ func cmdFmt(fl Flags) (int, error) { |
|
|
|
|
|
|
|
|
if fl.Bool("overwrite") { |
|
|
if fl.Bool("overwrite") { |
|
|
if err := os.WriteFile(formatCmdConfigFile, output, 0600); err != nil { |
|
|
if err := os.WriteFile(formatCmdConfigFile, output, 0600); err != nil { |
|
|
return caddy.ExitCodeFailedStartup, nil |
|
|
return caddy.ExitCodeFailedStartup, fmt.Errorf("overwriting formatted file: %v", err) |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
fmt.Print(string(output)) |
|
|
fmt.Print(string(output)) |
|
|