meshery/meshery

Replace raw error with ErrBuildOCIImg in ExportModel handler

クローズ

#19,424 opened on 2026/05/15

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)HTML (3,101 件のフォーク)batch import
area/ciarea/devopshelp wanted

Repository metrics

Stars
 (10,013 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド