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
9 changes: 7 additions & 2 deletions cmd/importURL.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ func NewImportURLCommand(globalClientOpts *connectors.ClientOptions) *cobra.Comm
return
}
}
var hasErrors bool
sepSpecificationFiles := strings.Split(specificationFiles, ",")
for _, f := range sepSpecificationFiles {
mainArtifact := true
Expand All @@ -120,11 +121,15 @@ func NewImportURLCommand(globalClientOpts *connectors.ClientOptions) *cobra.Comm
// Try downloading the artifcat
msg, err := mc.DownloadArtifact(f, mainArtifact, secret)
if err != nil {
fmt.Printf("Got error when invoking Microcks client importing Artifact: %s", err)
os.Exit(1)
fmt.Printf("Failed to import '%s': %s\n", f, err)
hasErrors = true
continue
}
fmt.Printf("Microcks has discovered '%s'\n", msg)
}
if hasErrors {
os.Exit(1)
}
},
}

Expand Down
Loading