Skip to content

Commit

Permalink
fix: go list命令错误被吞
Browse files Browse the repository at this point in the history
  • Loading branch information
reverse-direction-god authored and chenhaoxuan committed Jan 6, 2025
1 parent c9d1ea9 commit 21b4e70
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions module/go_mod/gotree.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ func readGraphCmd(ctx context.Context, dir string, directDependencyList map[stri
stdout.Close()
if err := cmd.Wait(); err != nil {
logger.Error(err.Error())
return nil, nil, nil, err
}
return dInfo, rootList, sonTree, nil
}
Expand Down

0 comments on commit 21b4e70

Please sign in to comment.