mirror of
https://github.com/luxfi/netrunner.git
synced 2026-07-27 00:04:23 +00:00
server: fix error message format
Signed-off-by: Gyuho Lee <gyuho.lee@avalabs.org>
This commit is contained in:
+5
-1
@@ -479,7 +479,11 @@ func (lc *localNetwork) Stop(ctx context.Context) {
|
||||
|
||||
if lc.nw != nil {
|
||||
err := lc.nw.Stop(ctx)
|
||||
ux.Print(lc.log, logging.Red.Wrap("terminated network %s"), err)
|
||||
msg := "terminated network"
|
||||
if err != nil {
|
||||
msg += fmt.Sprintf(" (error %v)", err)
|
||||
}
|
||||
ux.Print(lc.log, logging.Red.Wrap(msg))
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user