MCPcopy Index your code
hub / github.com/LumaAI-API/Luma-API / GenLumaError

Function GenLumaError

luma.go:46–53  ·  view source on GitHub ↗
(err error, statusCode int)

Source from the content-addressed store, hash-verified

44}
45
46func GenLumaError(err error, statusCode int) *WrapperErrorResp {
47 return &WrapperErrorResp{
48 StatusCode: statusCode,
49 ErrorResp: ErrorResp{
50 Detail: err.Error(),
51 },
52 }
53}
54
55func ReturnLumaError(c *gin.Context, err ErrorResp, statusCode int) {
56 common.Logger.Errorw("wrapper luma error", "statusCode", statusCode, "err", err)

Callers 2

uploadFileFunction · 0.85
getSignedUploadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected