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 <filename>`
This commit is contained in:
Shireesh Anjal
2024-08-05 01:06:03 -07:00
committed by GitHub
parent f0d2ad4708
commit 28d64f224a
+1 -1
View File
@@ -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 {