mir: ajust info print when stop app

pull/196/head
Michael Li 2 years ago
parent ba27352c52
commit e2e8393d20
No known key found for this signature in database

@ -151,13 +151,13 @@ func colorPrint(act byte, err error, l int, ss ...Service) {
case actStart: case actStart:
if err != nil { if err != nil {
for _, s = range ss { for _, s = range ss {
fmt.Fprintf(color.Output, "%s [start] - starting server occurs error:: %s\n", util.SidStr(s.Name(), s.Version(), l), err) fmt.Fprintf(color.Output, "%s [start] - starting server occurs error: %s\n", util.SidStr(s.Name(), s.Version(), l), err)
} }
} }
case actStop: case actStop:
if err != nil { if err != nil {
for _, s = range ss { for _, s = range ss {
fmt.Fprintf(color.Output, "%s [stop] - stopping server occurs error:: %s\n", util.SidStr(s.Name(), s.Version(), l), err) fmt.Fprintf(color.Output, "%s [stop] - stopping server occurs error: %s\n", util.SidStr(s.Name(), s.Version(), l), err)
} }
} }
} }

Loading…
Cancel
Save