Skip to content

Commit dc44ee6

Browse files
darthShadowCopilot
andauthored
Update cmd/size/size.go
Co-authored-by: Copilot <[email protected]>
1 parent 0088d45 commit dc44ee6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/size/size.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ of the size command.`,
6565
if jsonOutput {
6666
encErr := json.NewEncoder(os.Stdout).Encode(results)
6767
if err != nil {
68+
if encErr != nil {
69+
fs.Logf(fsrc, "JSON output may be incomplete or corrupted: %v", encErr)
70+
}
6871
return err
6972
}
7073
return encErr

0 commit comments

Comments
 (0)