meshery/meshery

Replace raw error with ErrBuildOCIImg in ExportModel handler

Open

#19 424 ouverte le 15 mai 2026

Voir sur GitHub
 (1 commentaire) (0 réactions) (0 assignés)HTML (10 013 stars) (3 101 forks)batch import
area/ciarea/devopshelp wanted

Description

Current Behavior

Current Behavior
In ExportModel when BuildImage fails, a raw Go error is logged instead of a structured meshkit error

Desired Behavior

Use the existing ErrBuildOCIImg (already defined in error.go:610 used in meshery_pattern_handler.go:934):

h.log.Error(ErrBuildOCIImg(err))
http.Error(rw, ErrBuildOCIImg(err).Error(), http.StatusInternalServerError)

Implementation

Acceptance Tests


Contributor Guides and Handbook

Guide contributeur