Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion internal/commands/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -2905,7 +2905,12 @@ func runCreateScanCommand(
scanResponseModel = enrichScanResponseModel(cmd, scanResponseModel)
err = printByScanInfoFormat(cmd, toScanView(scanResponseModel))
if err != nil {
return errors.Wrapf(err, "%s\n", failedCreating)
scanInfoFormat, _ := cmd.Flags().GetString(commonParams.ScanInfoFormatFlag)
return errors.Errorf(
"Scan %s was created successfully and is currently running. "+
"However, scan info won't be returned because the specified format %q is not supported. "+
"Supported formats: list, table, json.",
scanResponseModel.ID, scanInfoFormat)
}
}
// Wait until the scan is done: Queued, Running
Expand Down
Loading