MCPcopy Create free account
hub / github.com/cubefs/cubefs / InternalErrorCode

Function InternalErrorCode

objectnode/result_error.go:173–185  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

171}
172
173func InternalErrorCode(err error) *ErrorCode {
174 var errorMessage string
175 if err != nil {
176 errorMessage = err.Error()
177 } else {
178 errorMessage = "Internal Server Error"
179 }
180 return &ErrorCode{
181 ErrorCode: "InternalError",
182 ErrorMessage: errorMessage,
183 StatusCode: http.StatusInternalServerError,
184 }
185}

Callers 5

traceMiddlewareMethod · 0.85
corsMiddlewareMethod · 0.85
createBucketHandlerMethod · 0.85
getVolMethod · 0.85
errorResponseMethod · 0.85

Calls 1

ErrorMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…