Updata:调整错误提示

This commit is contained in:
jiaji.H 2025-11-27 17:58:54 +08:00
parent 049c0cfef0
commit b20b2c4e3f
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ func MetricsBusiness(ctx *gin.Context) {
}
resp, err := service.BundleProvider.MetricsBusiness(ctx, &req)
if err != nil {
service.Error(ctx, errors.New(common.MetricsBusinessFailed))
service.Error(ctx, err)
return
}
service.Success(ctx, resp)

View File

@ -137,7 +137,7 @@ func HandShelf(c *gin.Context) {
}
res, err := service.BundleProvider.HandShelf(context.Background(), &req)
if err != nil {
service.Error(c, errors.New(common.HandShelfFailed))
service.Error(c, err)
return
}
service.Success(c, res)