Skip to content

Commit 09a565a

Browse files
authored
Refining Code
1 parent f9e7d92 commit 09a565a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

macup/utils.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ func runCommand(writer io.Writer, name string, args ...string) {
7878
cmd := exec.Command(name, args...)
7979
cmd.Stdout = writer
8080
cmd.Stderr = writer
81-
cmd.Run()
81+
if err := cmd.Run(); err != nil {
82+
printlnRed(writer, "Error running command: "+err.Error())
83+
}
8284
}
8385

8486
// CheckInternet checks for internet connectivity by making an HTTP request.

0 commit comments

Comments
 (0)