summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/commandfuncs.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/commandfuncs.go b/cmd/commandfuncs.go
index bf24c24..3bf4b8d 100644
--- a/cmd/commandfuncs.go
+++ b/cmd/commandfuncs.go
@@ -529,6 +529,9 @@ func cmdAdaptConfig(fl Flags) (int, error) {
adaptedConfig = prettyBuf.Bytes()
}
+ // print result to stdout
+ fmt.Println(string(adaptedConfig))
+
// print warnings to stderr
for _, warn := range warnings {
msg := warn.Message
@@ -538,9 +541,6 @@ func cmdAdaptConfig(fl Flags) (int, error) {
fmt.Fprintf(os.Stderr, "[WARNING][%s] %s:%d: %s\n", adaptCmdAdapterFlag, warn.File, warn.Line, msg)
}
- // print result to stdout
- fmt.Println(string(adaptedConfig))
-
// validate output if requested
if adaptCmdValidateFlag {
var cfg *caddy.Config