From 876590feefa3135c428ad8311f5d77a163d5fa1a Mon Sep 17 00:00:00 2001 From: nexustar Date: Sat, 28 Jan 2023 16:08:40 +0800 Subject: [PATCH] improve tiup timeout message --- pkg/exec/run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/exec/run.go b/pkg/exec/run.go index caf5e2324d..fb80a1844d 100644 --- a/pkg/exec/run.go +++ b/pkg/exec/run.go @@ -176,7 +176,7 @@ func cmdCheckUpdate(component string, version utils.Version, timeoutSec int) { // timeout for check update go func() { time.Sleep(time.Duration(timeoutSec) * time.Second) - updateC <- color.RedString("timeout!") + updateC <- color.YellowString("timeout(%ds)!", timeoutSec) }() go func() {