Skip to content

Commit 29a623a

Browse files
committed
Compile recap is hidden also on a successful compile with default verbosity
1 parent 0c2d093 commit 29a623a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: internal/cli/compile/compile.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ func runCompileCommand(cmd *cobra.Command, args []string, srv rpc.ArduinoCoreSer
362362
}
363363

364364
stdIO := stdIORes()
365+
successful := (compileError == nil)
365366
res := &compileResult{
366367
CompilerOut: stdIO.Stdout,
367368
CompilerErr: stdIO.Stderr,
@@ -370,9 +371,9 @@ func runCompileCommand(cmd *cobra.Command, args []string, srv rpc.ArduinoCoreSer
370371
UpdatedUploadPort: result.NewPort(uploadRes.GetUpdatedUploadPort()),
371372
},
372373
ProfileOut: profileOut,
373-
Success: compileError == nil,
374+
Success: successful,
374375
showPropertiesMode: showProperties,
375-
hideStats: preprocess || quiet,
376+
hideStats: preprocess || quiet || (!verbose && successful),
376377
}
377378

378379
if compileError != nil {

0 commit comments

Comments
 (0)