From 28d64f224a59eb57b3828a890a6a78247c599ecd Mon Sep 17 00:00:00 2001 From: Shireesh Anjal <355479+anjalshireesh@users.noreply.github.com> Date: Mon, 5 Aug 2024 13:36:03 +0530 Subject: [PATCH] Fix wrong message shown when upload to SUBNET fails (#5005) When upload of the inspect file to SUBNET fails, following wrong message was getting printed: `Object inspection data for '' uploaded to SUBNET successfully` Fixed the if condition to ensure that following correct message is printed: `File data successfully downloaded as ` --- cmd/support-inspect.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/support-inspect.go b/cmd/support-inspect.go index 98ec9996..51cb0025 100644 --- a/cmd/support-inspect.go +++ b/cmd/support-inspect.go @@ -90,7 +90,7 @@ type inspectMessage struct { // Colorized message for console printing. func (t inspectMessage) String() string { var msg string - if globalAirgapped { + if globalAirgapped || t.File != "" { if t.Key == "" { msg = fmt.Sprintf("File data successfully downloaded as %s", console.Colorize("File", t.File)) } else {