Skip to content

Commit 21b4e70

Browse files
reverse-direction-godchenhaoxuan
authored andcommitted
fix: go list命令错误被吞
1 parent c9d1ea9 commit 21b4e70

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

module/go_mod/gotree.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ func readGraphCmd(ctx context.Context, dir string, directDependencyList map[stri
244244
stdout.Close()
245245
if err := cmd.Wait(); err != nil {
246246
logger.Error(err.Error())
247+
return nil, nil, nil, err
247248
}
248249
return dInfo, rootList, sonTree, nil
249250
}

0 commit comments

Comments
 (0)