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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user