Skip to content

Commit

Permalink
added missing error logging after pullStackFromRegistry
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
  • Loading branch information
michael-valdron committed Jul 29, 2022
1 parent 044de92 commit 6e0a403
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index/server/pkg/server/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,7 @@ func fetchDevfile(c *gin.Context, name string, version string) ([]byte, indexSch
if devfileIndex.Type == indexSchema.StackDevfileType {
bytes, err = pullStackFromRegistry(foundVersion)
if err != nil {
log.Print(err.Error())
c.JSON(http.StatusInternalServerError, gin.H{
"error": err.Error(),
"status": fmt.Sprintf("Problem pulling version %s from OCI Registry", foundVersion.Version),
Expand Down

0 comments on commit 6e0a403

Please sign in to comment.